UML DIAGRAM WORKSHOP
QUESTION 1
A book is written by an author,
published by a publisher, sold by a book store, and read by a reader. Moreover,
for a reader to read a book, she must buy it from a book store that is selling
it. Draw a use case diagram, showing relationships between different use cases.
Basic Course of Action for Enroll in University scenario:
1. An applicant
wants to enroll in the university.
2. The applicant
hands a filled out copy of University Application Form to the
registrar.
3. The registrar
clicks on the Create Student icon.
4. The system
displays Create Student Screen.
5. The registrar
inputs the name, address, and phone number of the applicant.
6. The system
checks whether the applicant is on the applicants list and whether they already
exist within the system.
7.
If the student is on the applicants list but
not already on the system, then a record is created.
8.
The student enrolls in courses.
9.
The system calculates the required initial
payment.
10. The system displays Fee
Summary Screen.
11. The student pays the initial
fee.
12. The system prints a receipt.
13. The registrar validates and gives
the student the receipt.
14. The use case ends.
QUESTION 3
Consider the following simplified description of a university where professors teach seminars in which students can enroll.
A professors
has a name, address, phone number, email address, and salary. A student has
also a name, etc., but no salary (sorry). A student, however, has an average
mark (of the final marks of his or her seminars). A seminar has a name and a
number. When a student is enrolled in a seminar, the marks for this enrollment
are recorded and the current average as well as the final mark (if there is
one) can be obtained from the enrollment. From a student one can obtain a list
of seminars he or she is enrolled in. Professors teach seminars. Each seminar
has at least one and at most three teachers. There are two types of seminar:
bachelor
and master. From a bachelor seminar students can not withdraw. From a master seminar they can.
Draw a class
diagram for this university. Add attributes and methods when necessary.
Visibility modifiers (public, private, etc.) are not required.
QUESTION 4
Consider an online reservation
system for a bus company. The bus company includes several buses and realizes
trips to different cities. Each bus is identified by its plate number and a
separately assigned bus number. The trips are based on a predefined schedule
and stop at predefined bus stations. Each bus can have only one trip per day.
Each bus includes a driver and one hostess. For long trips, the bus will have
breaks at service and rest areas. There are two types of trips, normal trips
and express trips. Express trips do not stop at intermediate stations and get
faster at the destination.
A real estate company sells houses and condos (apartments). The company’s listings management system stores evidence of listings. A listing contains the property address, image, year it was built, area, and price. In case of houses, people usually want to know the number of floors, size of lot, and basement characteristics. For condos, the sizes of storage and of balcony are distinguishing characteristics.
The company’s system associates listings with agent records. These include name, address, and employment start date. A single agent manages a number of listings at a time. While a listing is usually managed by a single agent, sometimes it happens that a listing is transferred from one agent to another. It is recorded when an agent starts and ends to manage a listing. Based on this description, draw a class diagram. You do not need to make any assumptions or to specify multiplicity
Altered State University (ASU) Registration System
1. Professors indicate which courses they will teach
on-line.
2. A course catalog
can be printed
3. Allow students to select on-line four courses for
upcoming semester.
4. No course may have
more than 10 students or less than 3 students.
5. When the
registration is completed, the system sends information to the billing system.
6. Professors can obtain course rosters on-line.
7. Students can add or drop classes on-line.
Consider the world of libraries.
A library has books, videos, and CDs that it loans to its users. All library
material has a id# and a title. In addition, books have one or more authors,
videos have one producer and one or more actors, while CDs have one or more
entertainers. The library maintains one or more copies of each library item
(book, video or CD). Copies of all library material can be loaned to users.
Reference-only material is loaned for 2hrs and can’t be removed from the
library. Other material can be loaned for 2 weeks. For every loan, the library
records the user, the loan date and time, and the return date and time. For
users, the library maintains their name, address and phone number. Draw a class
diagram (or two, if this is more convenient) for the description above. Make
sure to show attributes, multiplicities and aggregations/compositions, where
appropriate. No need to show any operations.
Design an E-R diagram for keeping
track of the exploits of your favourite sports team. You should store the
matches played, the scores in each match, the players in each match and
individual player statistics for each match. Summary statistics should be
modeled as derived attributes.
UPS prides itself on having
up-to-date information on the processing and current location of each shipped
item. To do this, UPS relies on a company-wide information system. Shipped
items are the heart of the UPS product tracking information system. Shipped
items can be characterized by item number (unique), weight, dimensions,
insurance amount, destination, and final delivery date. Shipped items are
received into the UPS system at a single retail center. Retail centers are
characterized by their type, uniqueID, and address. Shipped items make their
way to their destination via one or more standard UPS transportation events
(i.e., flights, truck deliveries). These transportation events are
characterized by a unique scheduleNumber, a type (e.g, flight, truck), and a
deliveryRoute. Please create an Entity Relationship diagram that captures this
information about the UPS system. Be certain to indicate identifiers and
cardinality constraints
Post a Comment