Question: In python, please. Lab 5 Create a new program that displays a bank account menu: 1) open account 2) deposit 3) withdraw 4) balance 5)

In python, please. Lab 5 Create a new program that displays aIn python, please.

Lab 5 Create a new program that displays a bank account menu: 1) open account 2) deposit 3) withdraw 4) balance 5) Exit Assume the user has to open an account first, before they can deposit, withdraw, or check balance. Each of the following options are to be programmed into a separate function, but can be s into the same file: Open Account: - Greet the new user and give the user the option to make an initial deposit to create the account. If at any point in time, the user Opens up a new account, the balance of the accot should reflect the newly deposited amount. Deposit: - Prompt for an amount to deposit and update the account balance. Withdraw: - Prompt for a withdrawal amount and update the account balance. Balance: - Display the current balance in the account. Exit: - Quits the program. Create a global variable for the balance. Before defining main, create the variable: balance =0 Then, before using it in your other functions or main, declare balance like so: global balance Now you can use it with global access! That means, if it changes anywhere else in your program, it will be changed. Please also read through some of the examples in Chapter 5

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!