Professional Documents
Culture Documents
My answer:
1. Computer and CPU: CPU is a part of computer, but CPU can exist
alone without computer, that is, they have different life cycle, so they
belong to aggregation
1. School and class: class is a part of school, but class can not leave
school and exist alone, that is, their life cycle is the same, so they belong
to composition
2. Draw Class diagram for library system with following classes: Member,
Librarian, Teacher, student, copy, and book.
Describe each of the following elements what they mean (one word or a
short sentence)
Attributes,
Methods,
Relationships
Multiplicity.
My class diagram:
Task 03: Create Class and Object diagram (10 Scores)
3. a) Draw the class diagram. Model the relationship of a role, president with
his country.
Please do the following:
Create the class diagrams with attributes, methods and add multiplicities
to all association ends.( add for each of the classes minimum three
meaningful attribute and at least one method)
My class diagram:
My object diagram:
Task 04: Create Use Case diagram (20 Scores)
Do the following:
Class 20: Choose Questions 4th & 5th
Class 21: Choose Questions 6th & 7th
4. Develop the Use Cases for a Library System
– supports library
– library lends books and magazines to borrowers who are registered in the
system, as are books and magazines
– library buys new titles, eventually in multiple copies
– Old books and magazines are removed when out of date.
– borrower can reserve a book or magazine not currently available
– When the registration is completed, the system sends information to the billing
system.