Question: Must be in python and can not use any functions Imagine that you are working at a bank, and you are asked to create a

Must be in python and can not use any functions
Imagine that you are working at a bank, and you are asked to create a program that stores the following for a user:
1. A checking account with the amount of each transaction in a list.
2. A savings account with the amount of each transaction in a list.
3. The total amount of money in the checking account.
4. The total amount of money in the savings account.
In addition to this, there are several operations that a user should be able to perform:
1. A user should be able to either withdraw or deposit money from either their checking or savings account. This means they should be prompted to enter whether theyd like to withdraw or deposit and then whether theyd like to do so from or to their checking or savings account.
2. A user should be able to see the balance in their checking or savings account.
3. A user should be able to view how many transactions are in each account.
4. A user should be able to see the total balance between both their checking and savings
account.
5. A user should be able to quit the banking program after typing q in the input.
PROGRAM BEHAVIOR
- A user is welcomed to the bank and prompted to perform an action - deposit, withdraw, balance, or transactions.
- If the user inputs deposit or withdraw:
- The user should be asked whether to deposit or withdraw in checking or
savings
- The amount should be added to the appropriate list of transactions, the total for the appropriate account, and the overall total.
- If the user inputs anything other than checking or savings, they should be prompted to start over from the beginning input.
- If the user inputs transactions:
- The user should be asked whether theyd like to check the transactions for
checking or savings.
- The program should return the number of transactions in the appropriate
account.
- If the user inputs anything other than checking or savings, they should be
prompted to start over from the beginning input.
- If the user inputs balance:
- The user should be asked whether theyd like to check the balance for checking,
savings, or total.
- The program should return the account balance for the appropriate account or
the total amount if the input was total.
- If the user inputs anything other than checking, savings, or total, they should be
prompted to start over from the beginning input.
- If the user inputs q they should exit the program and the program should return a print
statement letting the user know that they have exited the program.
- If the user inputs anything else, they should be prompted to try again.
REQUIREMENTS, ASSUMPTIONS, & CONSTRAINTS
- All numeric inputs should be positive integers greater than 0. Users should receive an error and be prompted to try again if a negative integer or a 0 is input.
- The user should be asked if they would like to do something else after every completed transaction.
- You may assume that amount requests are always valid. For example, even if an account has a balance of 0, a withdrawal would still be valid.

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!