CS2357 Set3
CS2357 Set3
MARKS: 100
1. a. Model a use case diagram for a ticket distributor for a train system. The system
includes two actors: a traveler, who purchases different types of tickets, and a central
computer system, which maintains a reference database for the tariff. Use cases should
include:
Buy_One_Way_Ticket,
Buy_Weekly_Card,
Buy_Monthly_Card,
and
Update_Tariff. Also include the following exceptional cases: Timeout (i.e., traveler took
too long to insert the right amount), Transaction_Aborted (i.e., traveler selected the
cancel button without completing the transaction), Distributor_Out_Of_Change, and
Distributor_Out_Of_Paper.
(45)
b. Model sequence diagrams for any two use cases you have modeled for the above
scenario.
(45)
2. a. Model a use case diagram for a Banking System. State the business rules you are
considering.
(45)
b. Consider the following use Cases that play a role in the Banking System you have
modeled:
i.
Deposit
ii.
Withdraw
(45)
3. a. Model a use case diagram for an online ticket reservation / cancellation system. State
the functional requirements you are considering.
(45)
b. Model sequence diagrams for any two use cases you have modeled.
(45)
(45)
(45)
(45)
(45)
(45)
(45)
(45)
(45)
8. a. Model a class diagram for an online ticket reservation / cancellation system. State the
functional requirements you are considering.
(45)
b. Model a use case diagram for an inventory control system. State the functional
requirements you are considering.
c. Viva- Voce 10 marks
(45)
9.
(45)
(45)
10. a. Model a use case diagram for a credit card processing system. State the functional
requirements you are considering.
(45)
b. Model a state transition diagram for an automatic teller machine (ATM). State the
functional requirements you are considering.
(45)
11. a. Model a use case diagram for a recruitment system. State the functional requirements
you are considering.
(45)
b. Model a state transition diagram for a credit card processing system. State the
functional requirements you are considering.
(45)
(45)
b. Model a state transition diagram for an e-ticketing system. State the functional
requirements you are considering.
(45)
13. a. Model an activity diagram for an automated teller machine (ATM). State the
functional requirements you are considering.
(45)
(45)
Suppose that you are required to implement a system for a car dealership. The system
needs to store information about each customer. This includes the customers ID
number, name, address and contact number. The dealership sells both used and new
cars. For all cars the registration number, year, make cost price and selling price must be
stored. The dealership sells both new and used cars. Information regarding the previous
owner, i.e. the contact persons name and number, must also be stored for each used
vehicle.
c. Viva- Voce 10 marks
(45)
Consider a MOVIE database in which data is recorded about the movie industry. The
data requirements are summarized as follows:
Each movie is identified by title and year of release. Each movie has a length in
minutes. Each has a production company, and each is classified under one or
more genres (such as horror, action, drama, and so forth). Each movie has one or
more directors and one or more actors appear in it. Each movie also has a plot
outline. Finally, each movie has zero or more quotable quotes, each of which is
spoken by a particular actor appearing in the movie.
Actors are identified by name and date of birth and appear in one or more
movies. Each actor has a role in the movie.
Directors are also identified by name and date of birth and direct one or more
movies. It is possible for a director to act in a movie (including one that he or she
may also direct).
Production companies are identified by name and each has an address. A
production company produces one or more movies.
Model a class diagram, stating any assumptions you make.
b. Model a state transition diagram for an online ticket reservation / cancellation system.
State the functional requirements you are considering.
c. Viva- Voce 10 marks
(45)
When the door is closed it is now in idle with door closed, but the light is turned
off.
If a button is pressed, then it moves to initial cooking stage, where the timer is
set and lights are on and heating starts.
At any moment the door may be opened, the cooking is interrupted, the timer is
cleared, and heating stops.
Also while cooking, another button can be pushed and extended cooking state
starts, where the timer gets more minutes. At any moment door can be opened
here also.
If the timer times out, then cooking is complete, heating stops, lights are off, and
it sounds a beep.
When the door is open, again the oven is in idle state with the door open.
a. Model a use case diagram.
(45)
(45)
********