Anda di halaman 1dari 6

Case study with solutions

1. Develop an activity diagram based on the following narrative. The purpose of the
Open Access Insurance System is to provide automotive insurance to car owners.
Initially, prospective customers fill out an insurance application, which provides
information about the customer and his or her vehicles. This information is sent
to an agent, who sends it to various insurance companies to get quotes for
insurance. When the responses return, the agent then determines the best policy
for the type and level of coverage desired and gives the customer a copy of the
insurance policy proposal and quote.

Prospective Customer Insurance Agent Insurance Company

Fill out
application

Process
application

Create quote

Determine
best policy

2. Draw state diagram for following situation

After the ATM has finished the transaction for the previous customer, the ATM will
show a “Welcome” message and ask the next customer to insert his/her card. If the
card has been inserted, the card is read and the consistency of the card data is
checked. Then, the customer is asked to enter the PIN. The ATM then checks if the
entered PIN is correct by comparing it with the data read from the card. If the PIN
was correct, then the customer can enter the amount of money (s)he wishes to
withdraw from his/her account. If the amount has been entered and the customer has
confirmed the amount, the ATM checks the balance of the account (check balance)
by asking the account-keeping system of the bank. If the balance of the account is
higher than the requested amount, then operation can continue. The ATM checks its

1
money tray if enough money is still available. If this ok, the ATM asks the customer
to take the card. If the card has been taken, the money can be issued to the customer.

Error Situations:
• card not readable
• card contains incorrect data
• wrong PIN number entered by customer
• account balance lower than requested money
• ATM does not have enough money

2
3. Create an activity diagram based on the following narrative.
The purchasing department handles purchase requests from other departments in
the company. People in the company who initiate the original purchase request
are the "customers" of the purchasing department. A case worker within the
purchasing department receives that request and monitors it until it is ordered and
received. Case workers process the requests for purchasing products under
$1,500, write a purchase order, and then send it to the approved vendor. Purchase
requests over $1,500 must first be sent out for a bid from the vendor that supplies
the product. When the bids return, the case worker selects one bid. Then, the
case worker writes a purchase order and sends it to the approved vendor.

In-house Customer Purchasing Department Vendor

Makepurchase
request

Cost <1500?
Yes
No

Request bid

Developbid

Select bid

Create
purchaseorder
for approved
vendor

3
Chapter 6, Case Studies

Case Study: Real Estate Multiple Listing Service System

4
2. Develop a fully developed use case description, activity diagram, and class
diagram (abbreviated) for the first use case Add a Listing.

Full Use Case Description for Add a Listing use case


Use Case Name: Add a listing
Scenario: Add a single listing
Triggering Event: Agent wants to add a listing to the database
Brief
Description:
Actors: Clerk in the MLS office
Stakeholders: MLS clerk
Agent
RE Office clerk
Preconditions: Real Estate Agent must exist
Postconditions: New Listing object must exist
Flow of Events: Actor System
1. Enter Agent info 1. Verify agent – find and
2. Enter new listing display status
information on a property 2. Create new listing,
3. Verify Listing display it
4. Quit session 4. Terminate session

Exception 1. If agent not found in database, terminate session


Conditions: 3. If errors in listing, edit listing

MLS Clerk Computer

Agent
verified?
Enter agent info no

yes

Display status
Enter new listing

Create and display new listing

Verify listing

Listing
correct?
Edit listing
no
yes

Activity Diagram for Add a Listing use case

5
Class Diagram for Real Estate Agency System
(based on use case description above)

Anda mungkin juga menyukai