Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Use the following narrative to complete the UML class diagram with classes, asso

ID: 3753125 • Letter: U

Question

Use the following narrative to complete the UML class diagram with classes, associations, and multiplicities outlined below and then answer questions :

The Multnomah County Library provides a variety of services to citizens of the county. First, the library offers a number of traditional books to be checked out by patrons. Each patron may check out up to 5 books at one time. Although library services are offered to all county citizens, each patron must obtain a library card to check out books. The library also offers a number of computers for patron use. The library tracks computer use sessions. Each patron uses his/her library card number to logon and is then allowed to use the computer for up to 30 minutes per session. The library also offers movies on DVD that patrons may check out. The library also maintains a number of small meeting rooms that patrons may reserve for meetings.

Which of the following is the best name for the class designated as D in the diagram?

Multiple Choice

Books

Computers

Patrons

Room Reservations

Computer Use Sessions

Issue library cards Books and F DVDs 1.1 (county citizen) 1.1 1..1 1.1 Rooms -

Explanation / Answer

E : It corresponds to Patrons because in its assosciation, county citizen is written and only Patrons could be county citizens. Also they have a 1..1 relationship with library cards because any patron could be only assosciated with a single book.

C: It corresponds to Library card because of 1..1 relationship with patrons( As every patron can have only one library card). Also the further relationship with Books and DVDs support it as library card is needed to issue Books and DVDs.

H: It will be 1..1 because every library card can be assosciated with only single Patron.

F: 0..* because as mentioned multiple books can be issued with a single library card.

B: Computer because its the only logical explaination left as rooms and Books are already covered

I: 0..* Because a single computer can be used be multiple patrons

J: It is 0..* because a patron can use multiple computers.

A: Computer Session, because it has 1..1 relation with computer, as the session can happen on only one computer at a time.

D: Room Reservation because it is connected to rooms and room reservation is needed for booking rooms.

G: 1..1 because relation between room reservation and room is unique, as any reservation can happen in only one room