Software Diagram 12113061
Software Diagram 12113061
i. An ATM has an administrator who manages the system maintenance. The maintenance
the table includes system reporting and system shutdown. Bank customers will log in to the
system and may do transactions of withdrawing money, checking account balance, deposit
money and print receipt which is governed by the bank but if the customer logs in with the wrong
pin no. bad pin message will be prompted. Draw the use case diagram for the above
scenario.
ii. A restaurant offers a great meal for its customers. The customer enters the restaurant.
The waiter will give the menu to the customer. The customer then places the order and the
waiter will take the order to the chef to prepare the food. Once the food is ready waiter
will serve the food to the customer after finishing the food customer will pay the bill to
the cashier. Draw a use case diagram for this.
iii. Create a browser-based training system to help people for a certification exam. A user can
request a quiz for the system. The system picks a set of questions from its database. It
rates the user's answers and gives hints if the user requests, in addition to users we also have
tutors who provide questions and hints. Also, examiners must certify to make sure
they are not too trivial. Draw a use case diagram to model this system.
iv. Suppose we want to develop software for an alarm clock. The clock shows the time of
the day using buttons. The user can set the hour and minute filed individually and use
12 or 24 hour display. It is possible to set multiple alarms. When an alarm fires it will
make noise. The user can turn it off or choose to snooze if the user does not respond at
all the alarms will turn off after 2 minutes. Snoozing means turning off the sound but the
alarm will fire again after some minutes of delay. The snoozing time is PRE-adjustable.
Model it with a use case diagram.
Assignment-2
i. Create an activity diagram describing the process of a person using the machine to buy
a ticket from Jahangir-puri to Huda city center and the machine only takes cash, no
credit or debit card.
ii. When a customer requests a room, the hotel employee looks for availability, and then he
inserts customer data and verifies if the provided credit card number has enough
credit to pay for the room, booking is confirmed, and waiting for the customer's arrival. The hotel
the system allows the customer to modify or cancel his/her room. If the customer arrives he uses
the room then he pays, in case of a show, a penalty is accounted for on his credit card
and the booking is canceled.
iii. Scenario: ‘SELECT FLOOR’
a. Passenger pushes destination floor button (internal button).
b. Internal button sends the system the order to select the direction up or down.
c. System changes elevator status from idle to busy.
d. System switches floor button.
e. System closes elevator door.
f. System moves elevator according to destination floor direction.
g. Elevator sends the system the order to control if the floor that the elevator is going
to pass through is the destination one.
h. System stops the elevator at the destination floor.
i. The system opens the door at the destination floor.
j. Passenger moves outside the elevator.
k. System switches internal button off.
iv. 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.
v. 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.
Caseworkers 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 send it to the approved vendor.
Assignment-3
i. State chart diagram for a simple calculator. The interface has 10 buttons with digits and
four buttons with the basic operation. The button ‘C’ resets the display. The button
‘=’ displays the answer.
ii. Model the behavior of a fuel pump container. Users can buy fuel after inserting a
credit card, which is read and validated by the controller. Then the user takes the
hose out of the holster and pushed the nozzle trigger to fuel his car, when the nozzle
is off. And the price is charged on the credit card. If the invalid card or time out, the
system returns to the initial waiting stage.
iii. Scenario: ‘SELECT FLOOR’
a. Passenger pushes destination floor button (internal button).
b. Internal button sends the system the order to select the direction up or down.
c. System changes elevator status from idle to busy.
d. System switches floor button.
e. System closes elevator door.
f. System moves elevator according to destination floor direction.
g. Elevator sends the system the order to control if the floor that the elevator is going
to pass through is the destination one.
h. System stops the elevator at the destination floor.
i. The system opens the door at the destination floor.
j. Passenger moves outside the elevator.
k. System switches internal button off.
Assignment-4
1. In a university, there are different classrooms, offices& dept., a dept. has a name and it contains
many offices. A person working at a university has a unique ID & and can be a professor or an
employee. A professor can be full, associate or Assistant Prof & he or she is enrolled in one
department. Offices& and classrooms have a no., id and a classroom has a no. of seats,every employee
works in an office.
2. Design a system for a movie shop to handle ordering movies & browsing the catalog of the store &
and user subscriptions with rechargeable cards. Only subscribers are allowed to hire movies. Their card
credit is updated on the card during rent operations.
Both users & and subscribers can buy a movie & and these data are saved in relative order. When a
movie is not available, it’s ordered.
3. The bank system contains data on customers & and their accounts, Customers are identified by their
name and address, and each account has a balance & there are 2 types of accounts--> one for savings
which offers are interest vote, other for investments used to buy stocks, stocks are bought at a certain
quantity for a certain price & the bank applies commission on stock orders.
4. A professor 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 seminars: bachelor's and master's. From a bachelor seminar, students cannot withdraw. From a
master seminar, they can.
Assignment-5
1. Create a CD Sales Report. The servlet object is our example driver. servlet sends a message to the
ReportGenerator class instance named gen. The message is labeled generateCDSalesReport, which
means that the ReportGenerator object implements this message handler. On closer inspection, the
generateCDSalesReport message label has cdId in parentheses, which means that a servlet is passing a
variable named cdId with the message. When the gen instance receives a generateCDSalesReport
message, it then makes subsequent calls to the CDSalesReport class, and an actual instance of a
CDSalesReport called aCDReport gets returned. The gen instance then makes calls to the returned
CDReport instance, passing its parameters on each message call. At the end of the sequenc e, the gen
instance returns a CDReport to its caller a Servlet.
2. Customer wants to draw money from his bank account. He enters his card into the ATM. The ATM
prompts ‘ENTER PIN’. The ATM internally retrieves bank account no. from the card. ATM encrypts
the PIN and account no. and sends it over to the bank. The bank verifies the encrypted account and pins
no. If pin no. is correct, the ATM displays ‘ENTER AMOUNT’ draws money from a bank account, and
pages out the amount
3 Foreign Trading System.
Assignment-6
Create a Collaboration Diagram for the following scenariosCustomer wants to draw money from his
bank account. He enters his card into the ATM. The ATM prompts ‘ENTER PIN’. The ATM internally
retrieves bank account no. from the card. ATM encrypts the PIN and account no. and sends it over to
the bank. The bank verifies the encrypted account and pins no. If pin no. is correct, the ATM displays
‘ENTER AMOUNT’ draws money from a bank account, and pages out the amount.