Вы находитесь на странице: 1из 8

ANNA UNIVERSITY: CHENNAI 600 025

B.E. / B.Tech. DEGREE EXAMINATIONS, APRIL / MAY 2014

COMPUTER SCIENCE AND ENGINEERING / INFORMATION TECHNOLOGY

SIXTH SEMESTER

CS2357: OBJECT ORIENTED ANALYSIS AND DESIGN LAB

R-2008

TIME: 3 HOURS

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)

c. Viva- Voce 10 marks

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

Model sequence diagrams for the above two use cases.

(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)

c. Viva- Voce 10 marks

4. Consider the following scenario:

The goal is to process different types of credit applications at a bank. The credit applications include those for home equity loans, home mortgage loans, auto loans, and credit cards. From the bank’s perspective, therefore, the customers are home owners,

home buyers, auto buyers, and credit card applicants. To process any type of loan or credit card application, the bank needs to check the applicant’s credit history, based on a report from the credit bureau. For the first two types of loans, the bank summons and assessor to assess the property value before making a decision.

a. Model a use case diagram.

(45)

b. Model an activity diagram.

(45)

c. Viva- Voce 10 marks

5. Consider the following scenario:

A customer visits the online shopping portal. A customer may buy item or just visit the page and logout. The customer can select a segment, then a category, and brand to get the different products in the desired brand. The customer can select the product for

purchasing. The process can be repeated for more items. Once the customer finishes selecting the product(s) the cart can be viewed, if the customer wants to edit the final cart it can be done here. For final payment the customer has to login the portal, if the customer is visiting for the first time he must register with the site, else the customer must use the login page to proceed. Final cart is submitted for payment and card details and address (where shipment has to be made) are be confirmed by the customer. Customer is confirmed with a shipment Id and delivery of goods within 15 days.

a. Model a use case diagram.

(45)

b. Model a state transition diagram.

(45)

c. Viva- Voce 10 marks

6. Consider the following scenario:

Consider a CONFERENCE_REVIEW database in which researchers submit their research papers for consideration. Reviews by reviewers are recorded for use in the paper selection process. The database system caters primarily to reviewers who record answers to evaluation questions for each paper they review and make recommendations regarding whether to accept or reject the paper. The data requirements are summarized as follows:

Authors of papers are uniquely identified by e-mail id. First and last names are also recorded.the paper. The data requirements are summarized as follows: Each paper is assigned a unique identifier

Each paper is assigned a unique identifier by the system and is described by a title, abstract, and the name of the electronic file containing the paper.by e-mail id. First and last names are also recorded. A paper may have multiple authors,

A paper may have multiple authors, but one of the authors is designated as the contact author.and the name of the electronic file containing the paper. Reviewers of papers are uniquely identified

Reviewers of papers are uniquely identified by e-mail address. Each reviewer’s first name, last name, phone number, affiliation, and topics of interest are also recorded. viewer’s first name, last name, phone number, affiliation, and topics of interest are also recorded.

Each paper is assigned between two and four reviewers. A reviewer rates each paper assigned to him or her on a scale of 1 to 10 in four categories: technical merit, readability, originality, and relevance to the conference. Finally, each reviewer provides an overall recommendation regarding each paper.affiliation, and topics of interest are also recorded. Each review contains two types of written comments:

Each review contains two types of written comments: one to be seen by the review committee only and the other as feedback to the author(s).provides an overall recommendation regarding each paper. a. Model a class diagram, stating any assumptions you

a.

Model a class diagram, stating any assumptions you make. (45)

b.

Model a use case diagram.

(45)

c.

Viva- Voce 10 marks

7.

Consider the following scenario:

An international airport requires a system to keep track of flight details for customers. For each flight the system needs to store the flight number, destination, departure time, departure gate, airline and flight cost. Some flights are direct flights, i.e. they fly non- stop to the destination and some fly via another airport to their destination. We will call these flights indirect flights. In this case the flight stops at an airport en route to its destination to refuel. In the case of indirect flights information regarding the transit airport must also be stored. The flight cost is calculated to be the cost charged by the airline per customer plus a percentage of this amount (the profit rate). In the case of indirect flights an additional levy must be added to this amount per customer in order to cover refueling levies at the transit airport. Furthermore, on some flights additional passengers can board the plane at the transit airport. The system needs to keep track of whether boarding will take place at the transit airport or not. The system also needs to store details of the aircraft used for a flight. The aircraft make, model and capacity (number of passengers that it can carry), must be stored for each aircraft.

a.

Model a class diagram, stating any assumptions you make.

(45)

b.

Model a use case diagram.

(45)

c.

Viva- Voce 10 marks

8. a. Model a class diagram for an online ticket reservation / cancellation system. State the

functional requirements you are considering.

b. Model a use case diagram for an inventory control system. State the functional

requirements you are considering. c. Viva- Voce 10 marks

(45)

(45)

9. Consider the following scenario:

Hamen’s bank manages a number of customer accounts. A customer can have one of three types of accounts, namely, a current account, a savings account or a loan account. Details that need to be stored for each customer include the customers ID number, name, address and telephone number. Each account has an account number and balance. Money can be withdrawn from an account or deposited into the account. In the case of both the savings and current accounts a withdrawal results in the balance being

decreased while in the case of a loan account the balance is increased. Similarly, a deposit results in the balance being increased for the current and savings accounts and decreased for the loan account. For each current account the customer’s profile, can be gold, silver or bronze. This information needs to be stored for each current account as accounts in these different categories have different benefits. Whenever a deposit is made into a savings account the customer earns interest on the updated balance at a given rate. The interest rate used needs to be stored for each savings account. Additional information needed for each loan account includes the duration of the loan in months, loan limit, and the monthly installments.

a.

Model a class diagram, stating any assumptions you make.

(45)

b.

Model a use case diagram.

(45)

c.

Viva- Voce 10 marks

10. a. Model a use case diagram for a credit card processing system. State the functional

requirements you are considering.

b. Model a state transition diagram for an automatic teller machine (ATM). State the

functional requirements you are considering.

c. Viva- Voce 10 marks

(45)

(45)

11. a. Model a use case diagram for a recruitment system. State the functional requirements

you are considering.

b. Model a state transition diagram for a credit card processing system. State the

functional requirements you are considering.

(45)

(45)

c.

Viva- Voce 10 marks

12. a. Model a use case diagram for an online course enrollment system. State the functional

requirements you are considering.

b. Model a state transition diagram for an e-ticketing system. State the functional

requirements you are considering.

c. Viva- Voce 10 marks

(45)

(45)

13. a. Model an activity diagram for an automated teller machine (ATM). State the functional requirements you are considering. (45)

b. Model a class diagram for the following scenario:

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 customer’s 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 person’s name and number, must also be stored for each used

(45)

vehicle.

c. Viva- Voce 10 marks

14. a. Model a class diagram for the following scenario:

(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.industry. The data requirements are summarized as follows: Actors are identified by name and date of

Actors are identified by name and date of birth and appear in one or more movies. Each actor has a role in the movie.is spoken by a particular actor appearing in the movie. Directors are also identified by name

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).in one or more movies. Each actor has a role in the movie. Production companies are

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.in a movie (including one that he or she may also direct). b. Model a state

b. Model a state transition diagram for an online ticket reservation / cancellation system.

State the functional requirements you are considering. (45)

c. Viva- Voce 10 marks

15. Consider the following scenario:

Here is what happens in a microwave oven:

The oven is initially in an idle state with door open, where the light is turned on.scenario: Here is what happens in a microwave oven: When the door is closed it is

When the door is closed it is now in idle with door closed, but the light is turned off.an idle state with door open, where the light is turned on. If a button is

If a button is pressed, then it moves to initial cooking stage, where the timer isnow in idle with door closed, but the light is turned off. set and lights are

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.where the timer is set and lights are on and heating starts. Also while cooking, another

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.is interrupted, the timer is cleared, and heating stops. If the timer times out, then cooking

If the timer times out, then cooking is complete, heating stops, lights are off, and it sounds a beep.more minutes. At any moment door can be opened here also. When the door is open,

When the door is open, again the oven is in idle state with the door open.heating stops, lights are off, and it sounds a beep. a. Model a use case diagram.

a. Model a use case diagram.

(45)

b. Model a state transition diagram.

(45)

c. Viva- Voce 10 marks

********