0% found this document useful (0 votes)
121 views6 pages

Assignment Class, Object and Use Case Diagrams: Task 01: Aggregation Vs Composition (10 Scores)

This document outlines tasks for an assignment on class, object, and use case diagrams. Task 1 provides examples of aggregation and composition relationships and asks to argue which type each example represents. Task 2 asks to create a class diagram for a library system with defined classes. Task 3 asks to create a class diagram modeling the relationship between a president and their country, including attributes and methods, and then an object diagram with two presidents. Task 4 provides use case descriptions and asks to create use case diagrams for a library system, university registration system, online book shopping, and a hotel information system.

Uploaded by

praba karan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
121 views6 pages

Assignment Class, Object and Use Case Diagrams: Task 01: Aggregation Vs Composition (10 Scores)

This document outlines tasks for an assignment on class, object, and use case diagrams. Task 1 provides examples of aggregation and composition relationships and asks to argue which type each example represents. Task 2 asks to create a class diagram for a library system with defined classes. Task 3 asks to create a class diagram modeling the relationship between a president and their country, including attributes and methods, and then an object diagram with two presidents. Task 4 provides use case descriptions and asks to create use case diagrams for a library system, university registration system, online book shopping, and a hotel information system.

Uploaded by

praba karan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Assignment

Class, Object and Use case Diagrams

Task 01: Aggregation vs Composition (10 Scores)


1. Give us four examples of a part-whole relationship, two examples of an
aggregation and two examples of a composition relationship.
Argue for each of the four cases why it is an aggregation or an
composition respectively. (Such an argument would consist of the generic
criterion for choosing the respective type of association and one or two
sentences arguing why the criterion applies here.)

Example1: house and chair,they are aggregation relationship.


Because a chair is just a part of house,the house has a chair,and there
are many other furniture in the house.And the chair not only exist in this
house, but also it can be placed in other house.
Example2: supermarket and toilet paper,they are aggregation
relationship.Because toilet paper is a commodity,it is also a part of
supermarket.And toilet paper can also exist in other house or toilet.
Example3: a house and a room,they are composition
relationship.Because a house normally has many rooms, and one room
must belongs to a specific house,it can’t belongs to many house at the
same time.And if you destroy the house,you also destroy the room.
Example4: bike sharing company and sharing bike,they are
composition relationship. Because every company has exclusive
bike,so it belong to one company. Once the company went
bankrupt,the bike will be recycle.

Task 02: Create class diagram (10 Scores)

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,it means objects born with these attributes
 Methods, what action can object execute.
 Relationships,show what relation between two classes/objects.
 Multiplicity. Specific number.

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)
b) Then create an object diagram that conforms to the class diagram
containing at least two presidents.
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
5. Develop the Use Cases for East China University of Technology (ECUT)
Registration System.
– Professors indicate which courses they will teach on-line.

– Allow students to select on-line four courses for upcoming semester.

– No course may have more than 10 students or less than 3 students.

– When the registration is completed, the system sends information to the billing
system.

– Professors can obtain course rosters on-line.

– Students can add or drop classes on-line.


6. Develop the Use Cases for online shopping of books

7. Create use case diagram for a simple hotel information system.


– Tour Group customers and Individual customers

– Tour Group customers are those who have made reservations through a tour
operator in advance, while Individual customers make their reservations directly
with the hotel

– Both types of customers can book, cancel, check-in and check-out of a room by
phone or via the Internet

Due date: Monday, 18.05.2020, 08:00AM

You might also like