You are going to write a program to simulate a banking application for just one customer.
When a user runs your program, it should display the menu with the following options and ask the user for input.
Type D to deposit moneyType W to withdraw money
Type B to display Balance
Type E to exit
If the user types D
Ask the user to enter the amount to deposit. When the user enters the amount, update the balance.
And display the menu again
If the user types W then
Ask the user to enter the amount he/she wants to withdraw. When the user enters the amount, subtract the amount from the balance, If there is not enough balance, then do not proceed with withdrawal and display the message “”Not enough balance””
If the user enters B , then
Display the balance to the user
If the user types E . then
Terminate the program.
If the user types any other option:
Display the message “Invalid Choice. Try again”
PS: After each time the user selects one of the options, your program must keep displaying the menu until the user types the option E, to exit the program.
Mimir Requirement:
The file name must be Module4Homework6.py
Test Scenaro1:
Type D to deposit money
Type W to withdraw money
Type B to display Balance
Type E to exit
Enter your choice now: ‘D’
Please enter your amount to deposit: 100
*****
Type D to deposit money
Type W to withdraw money
Type B to display Balance
Type E to exit
Enter your choice now: ‘B’
Your balance is: 100
*****
Type D to deposit money
Type W to withdraw money
Type B to display Balance
Type E to exit
Enter your choice now: ‘W’
Please enter the amount you want to withdraw: 50
*****
Type D to deposit money
Type W to withdraw money
Type B to display Balance
Type E to exit
Enter your choice now: ‘B’
Your balance is: 50
*****
Type D to deposit money
Type W to withdraw money
Type B to display Balance
Type E to exit
Enter your choice now: ‘W’
Please enter the amount you want to withdraw: 25
*****
Type D to deposit money
Type W to withdraw money
Type B to display Balance
Type E to exit
Enter your choice now: ‘D’
Please enter your amount to deposit: 100
*****
Type D to deposit money
Type W to withdraw money
Type B to display Balance
Type E to exit
Enter your choice now: ‘D’
Please enter your amount to deposit: 100
*****
Type D to deposit money
Type W to withdraw money
Type B to display Balance
Type E to exit
Enter your choice now: ‘B’
Your balance is: 225
*****
Type D to deposit money
Type W to withdraw money
Type B to display Balance
Type E to exit
Enter your choice now: ‘W’
Please enter the amount you want to withdraw: 25
*****
Type D to deposit money
Type W to withdraw money
Type B to display Balance
Type E to exit
Enter your choice now: ‘B’
Your balance is: 200
*****
Type D to deposit money
Type W to withdraw money
Type B to display Balance
Type E to exit
Enter your choice now: ‘D’
Please enter your amount to deposit: 150
*****
Type D to deposit money
Type W to withdraw money
Type B to display Balance
Type E to exit
Enter your choice now: ‘B’
Your balance is: 350
*****
Type D to deposit money
Type W to withdraw money
Type B to display Balance
Type E to exit
Enter your choice now: ‘E’
Test Scenario 2:
Type D to deposit money
Type W to withdraw money
Type B to display Balance
Type E to exit
Enter your choice now: ‘D’
Please enter your amount to deposit: 300
*****
Type D to deposit money
Type W to withdraw money
Type B to display Balance
Type E to exit
Enter your choice now: ‘A’
Invalid choice. Try again
*****
Type D to deposit money
Type W to withdraw money
Type B to display Balance
Type E to exit
Enter your choice now: ‘B’
Your balance is: 300
*****
Type D to deposit money
Type W to withdraw money
Type B to display Balance
Type E to exit
Enter your choice now: ‘E’
Test Scenario3:
Type D to deposit money
Type W to withdraw money
Type B to display Balance
Type E to exit
Enter your choice now: ‘D’
Please enter your amount to deposit: 400
*****
Type D to deposit money
Type W to withdraw money
Type B to display Balance
Type E to exit
Enter your choice now: ‘B’
Your balance is: 400
*****
Type D to deposit money
Type W to withdraw money
Type B to display Balance
Type E to exit
Enter your choice now: ‘W’
Please enter the amount you want to withdraw: 500
Not enough balance
*****
Type D to deposit money
Type W to withdraw money
Type B to display Balance
Type E to exit
Enter your choice now: ‘B’
Your balance is: 400
*****
Type D to deposit money
Type W to withdraw money
Type B to display Balance
Type E to exit
Enter your choice now: ‘E’