Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

What is the purpose of the Salary Structure Table?

Answered: 1 week ago

Question

What is the scope and use of a Job Family Table?

Answered: 1 week ago