Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

6. Suppose you are designing an ATM machine, a customer who wishes to withdraw some cash from his or her banking account. Consider the use

image text in transcribed

6. Suppose you are designing an ATM machine, a customer who wishes to withdraw some cash from his or her banking account. Consider the use case Withdraw Cash" and finish the sequence diagram shown in the figure below. The Customer object contains all the information received from the current customer. IDChecker compares the entered ID with all the stored IDs contained in Customer DStorage. Acctinfo mainly contains information about the current account balance. Acct Manager performs operations on the Acctinfo, such as subtracting the withdrawn amount and ensuring that the remainder is greater than or equal to zero. Lastly, CashDispenserCtrl control the physical device that dispenses cash. One could argued that AcctInfo and Acct Manager should be combined into a single object Account, which encapsulates both account data and the methods that operate on the data. The account data is most likely read from a database, and the container object is created at that time. [20 pts) a. Discuss the pros and cons for both possibilities with your justification. b. Redraw and Indicate all design principles that you employ in the sequence diagram. GUI Controller Customer IDChecker Customer/DStore : Acctinfo AcctManager CashDispenserCtrl Customer enterCard) askPINO) enterPIN) askAmt) enterAmt). A Sequence diagram for the ATM machine of the Problem 6

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data And Databases

Authors: Jeff Mapua

1st Edition

1978502257, 978-1978502253

More Books

Students also viewed these Databases questions

Question

Describe the five steps in the performance appraisal process.

Answered: 1 week ago