Reference no: EM133380866
Application Engineering and Development
PERFORM CREATE AND READ OPERATIONS ON ALL OBJECTS - ALL IDs should be STATICALLY determined.
Question 1. Design a high-level class model for the Library System indicating the attributes and methods of the classes. Apply inheritance, static variables wherever necessary and assign objects appropriately:
a. Library has three types of users: a sysadmin, Librarian, Branch Manager,and Customers
b. A library has two kinds of employees with designations: Librarian and Branch Manager
i. EmployeeID
ii. Experience
iii. Designation
c. This system supports Libraries in multiplebranches. Assume each branch has ONE library. Each Library has ONE Librarian and ONE Branch Manager as the employees.
d. Branch has:
i. Name
ii. Library Object
iii. UserAccount Directory
e. A Library has:
i. All the associated objects
ii. Building No.
f. A Library has different materialfor people: Books and Magazine.
g. A material is trackedby a
i. serial number
ii. name
iii. registered date
iv. isAvailablity flag.
h. A Library has a collection of Books.
i. A Book has one author and belongs to one genre.
j. A book's
i. No. of pages
ii. Language
iii. type of binding is also tracked.
k. A Library System maintains all the Authors.
l. A Library System maintains all the genre for the books.
m. A Library has OtherCollections like Magazines.
n. A magazine also has the
i. company name
ii. issue type: weekly, fortnightly, etc.
o. A customer can rent books, magazines from the library.
p. A customer can rent only one bookand/orone magazine in every rental request.
q. A rental request includes:
i. ID
ii. Price
iii. status: Rented|Returned|etc,
iv. Rent duration.
v. Book, Magazine
r. A rental request makes note of the library from where the Customer rents.
s. If a Material is rented, the other customers cannot rent them until it is available.
t. A customer can Return the Material to the Library and the Material is made Available for renting.
Question 2. Design a Swing application for the respective role to perform the following tasks:
Librarian
1. Add information related to all the Materials.
2. Add Genre
3. Add Authors
4. Accept/Reject book rental request pertaining to their Library ONLY.
System Admin
1. System Admin can manage the user accounts in the system.
2. Add Employees in different libraries.
Assume ONE Branch Manager and ONE Librarian for each location.
3. Delete a branch.
4. Customer registration
Customer
1. Customer views the all the collection in the library
2. Customer places a rental request to the Librarian belonging to a certain location.
3. Customer views the list of all the materials he previously rented and their statuses.
Branch Manager
1. Views the material collection in that location/branch of the library.
2. Views the Rent requests received in the library.
3. Checks the TOTAL REVENUE generated through rental requests.