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

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