Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Draw a class diagram for the following scenario: In a university there are different classrooms, offices and departments, a department has a name and

1. Draw a class diagram for the following scenario:
In a university there are different classrooms, offices and departments, a department has a name and contains many offices, A person working at the department has a unique ID and can be a professor or an employee. A professor can be full, associate or assistance professor and he is enrolled in one department. Offices and classrooms has an ID number, a class room has the number of seats. Every employee works in an office.
2. Create a detailed class diagram for the following library system.
The system allows performing these functions.
1. Check out a copy of a book. Return a copy of a book.
2. Put a book on hold if already borrowed.
3. Add a copy of a book to the library. Remove a copy of a book from the library.
4. Browse the list of books using different filtering / sorting criteria.
5. Find out the list of books currently checked out by a particular borrower.
6. Check users personal information.
7. Suspend / delete a user.
8. Set borrowing limit (max number of books to borrow).
There are two types of users: staff users and ordinary borrowers. Staff are divided into two categories: Librarians and Clerks.
A library user can do tasks 2, 4, 5 and 6. But he can do 5 and 6 only on his own records.
A clerk can 1, 2, 4, 5, 6 and 7
A librarian can do all the tasks.
The library has books and scientific journals. Journals cannot be borrowed outside the
library.
There could be multiple copies of the same book. But there is only one copy of a journal.
No copy of the book may be both available and checked out at the same time.
Only borrowed books can be on hold.
A borrower may not have more than a certain number of books borrowed at the same time.
Putting a hold on a borrowed book, will give priority to borrow it when it comes.
A book is defined by its title, author, publisher, date, edition, ISBN number, library ID.
A journal is defined by its name, publisher, date, volume number, issue number, ISBN,
library ID.
The librarian specifies the max number of books that can be borrowed at the same time.
Borrower (user) is defined by ID, name, address, phone number and email.
A borrower is suspended if he borrows a book and does not return it for a month after the
due date.
image text in transcribed
1. Draw a class diagram for the following scenario: In a university there are different classrooms, offices and departments, a department has a name and contains many offices, A person working at the department has a unique ID and can be a professor or an employee. A professor can be full, associate or assistance professor and he is enrolled in one department. Offices and classrooms has an ID number, a class room has the number of seats. Every employee works in an office. 2. Create a detailed class diagram for the following library system. The system allows performing these functions. 1. Check out a copy of a book. Return a copy of a book. 2. Put a book on hold if already borrowed. 3. Add a copy of a book to the library. Remove a copy of a book from the library. 4. Browse the list of books using different filtering/ sorting criteria. 5. Find out the list of books currently checked out by a particular borrower. 6. Check users' personal information. 7. Suspend / delete a user. 8. Set borrowing limit (max number of books to borrow). There are two types of users: staff users and ordinary borrowers. Staff are divided into two categories: Librarians and Clerks. A library user can do tasks 2, 4, 5 and 6. But he can do 5 and 6 only on his own records. A clerk can 1, 2, 4, 5, 6 and 7 A librarian can do all the tasks. The library has books and scientific journals. Journals cannot be borrowed outside the library. There could be multiple copies of the same book. But there is only one copy of a journal. No copy of the book may be both available and checked out at the same time. Only borrowed books can be on hold. A borrower may not have more than a certain number of books borrowed at the same time. Putting a hold on a borrowed book, will give priority to borrow it when it comes. A book is defined by its title, author, publisher, date, edition, ISBN number, library ID. A journal is defined by its name, publisher, date, volume number, issue number, ISBN, library ID. The librarian specifies the max number of books that can be borrowed at the same time. Borrower (user) is defined by ID, name, address, phone number and email. A borrower is suspended if he borrows a book and does not return it for a month after the due date

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

DB2 11 The Database For Big Data And Analytics

Authors: Cristian Molaro, Surekha Parekh, Terry Purcell, Julian Stuhler

1st Edition

1583473858, 978-1583473856

More Books

Students also viewed these Databases questions