Question
using python language You are going to write a program to simulate a banking application for just one customer. When a user runs your program,
using python language
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 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.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started