Question: Please write code for this using latest version of Python. 1. Savings Account: Write a program to maintain a savings account. The program should use
Please write code for this using latest version of Python.

1. Savings Account: Write a program to maintain a savings account. The program should use a class named SavingsAccount with instance variables for the customer's name and the account balance, and two methods named makeDeposit and makeWithdrawal. The make Withdrawal method should deny withdrawals that exceed the balance in the account. See Fig. 11.1. Enter person's name: Fred D = Deposit, W = Withdrawal, Q = Quit Enter D, w, or Q: D Enter amount to deposit: 1000 Balance: $1,000.00 Enter D, W, or Q: W Enter amount to withdraw: 4000 Insufficient funds, transaction denied. Balance: $1,000.00 Enter D, W, or Q: W Enter amount to withdraw: 400 Balance: $600.00 Enter D, W, or Q: 0 End of transactions. Have a good day Fred
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
