Question: paython Write a program that repeatedly asks the user to either withdraws ( W ) or deposits ( D ) an amount from / to
paython Write a program that repeatedly asks the user to either withdraws W or
deposits D an amount fromto the balance of a bank account until the user
decides to exit E The program should print the final balance and the
number of withdraws and deposits operations.
Note: The initial balance is SR
Sample Run
Select a character WDE: W
Enter the amount:
Select a character WDE: D
Enter the amount:
Select a character WDE: D
Enter the amount:
Select a character WDE: E
The new balance is:
The number of Withdraws operations is:
The number of Deposits operations is:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
