Question: 2 0 . Write a menu - driven program that allows the user to make transactions to a savings account. Assume that the account initially

20. Write a menu-driven program that allows the user to make transactions to a savings account. Assume that the account initially has a balance of $1,000. Hint: use while and break
Options
a. Make a deposit.
b. Make a withdrawal.
c. Obtain balanced
d. Exit
Program flow
a. Input: select the deposit option, enter 500
b. Output: show deposit processed
e. Input: select make a withdrawal, enter 2000
f. Output: Show denied, maximum withdrawal us 1500
g. Input: select make a withdrawal, enter 600
h. Output: Show withdrawal processed
i. Input: select show balance
j. Output: Show balance of 900

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!