You are required to prepare the sequence diagram for withdrawing the money from the ATM for the following sequence of the events: The customer is able to make withdrawal of Money from the Bank ATM. The system employs the standard procedure for withdrawal of money by validating the card and account holder password. Assume that the main objects in this case are Customer and ATM.
Question
You are required to prepare the sequence diagram for withdrawing the money from the ATM for the following sequence of the events: The customer is able to make withdrawal of Money from the Bank ATM. The system employs the standard procedure for withdrawal of money by validating the card and account holder password. Assume that the main objects in this case are Customer and ATM.
Solution
Sure, here is a step-by-step guide to prepare a sequence diagram for withdrawing money from an ATM:
-
Identify the main objects: In this case, the main objects are the Customer and the ATM.
-
Identify the interactions: The interactions between the objects are the events that take place. In this case, the interactions are: Card Insertion, Password Entry, Withdrawal Request, and Money Dispensation.
-
Draw the lifelines: Lifelines are vertical dashed lines that represent the life of an object during a sequence. Draw two lifelines, one for the Customer and one for the ATM.
-
Draw the messages: Messages are the interactions between the objects. Draw horizontal arrows from the Customer lifeline to the ATM lifeline for Card Insertion and Password Entry. Then, draw a horizontal arrow from the ATM lifeline to the Customer lifeline for Withdrawal Request. Finally, draw another horizontal arrow from the ATM lifeline to the Customer lifeline for Money Dispensation.
-
Label the messages: Label each message with the interaction it represents.
-
Draw the activation bars: Activation bars are thin rectangles that show when an object is active during a sequence. Draw an activation bar on the Customer lifeline during Card Insertion and Password Entry, and on the ATM lifeline during Withdrawal Request and Money Dispensation.
-
Draw the return messages: Return messages are dashed arrows that show the response of an object to a message. Draw a return message from the ATM lifeline to the Customer lifeline after Password Entry to show that the ATM has validated the password. Draw another return message from the ATM lifeline to the Customer lifeline after Money Dispensation to show that the ATM has dispensed the money.
-
Review the diagram: Check that all interactions are represented and that the sequence of events is correct.
This is a basic sequence diagram for withdrawing money from an ATM. Depending on the level of detail required, you may need to add more objects and interactions.
Similar Questions
Draw the Sequence Diagram to Withdraw the Money from ATM
Write an algorithm and draw a flowchart to show the steps of ATMcash withdrawal.
When a customer using an ATM (cash machine) enters their PIN number incorrectly three times, the card is not returned to the customer. This security procedure can be written into the software by a programmer using selection and iteration.Explain how selection and iteration are used in the ATM system described.[4]
Design a logic circuit for an ATM system. The ATM has three options: print a statement, withdraw money, or deposit money. The ATM will charge a $1 fee to: ● Withdraw money ● Print a statement without depositing money / Withdraw money ‘1’, ● Print statement w/o depositing money ‘1’ ● State of the ATM is ‘1’ when it charges $1.
Prepare a PL/pgSQL block that simulates an ATM transaction system.•If the withdrawal amount is less than or equal to 0, the block should display an "Invalid withdrawal amount" message.•If the withdrawal amount is greater than the account balance, the block should display an "Insufficient funds" message.•If the withdrawal amount is up to Rs. 20000, the block should perform a withdrawal and deduct the amount from the accountbalance.•If the withdrawal amount is up to Rs. 40000, the block should perform a withdrawal, deduct the amount, and apply a transactionfee 5%.•For withdrawal amounts greater than Rs. 40000, the block should perform a withdrawal, deduct the amount, and apply a highertransaction fee 18%.The block should also display the current account balance after each scenario
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.