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 from/to 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 1000 SR
[Sample Run]
Select a character (W/D/E): W
Enter the amount: 200
Select a character (W/D/E): D
Enter the amount: 100
Select a character (W/D/E): D
Enter the amount: 400
Select a character (W/D/E): E
The new balance is: 1300
The number of Withdraws operations is: 1
The number of Deposits operations is: 2

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 Programming Questions!