Question: program in python. please and thanks i will leave a like Write a program to simulate a bank transaction. There are two bank accounts: checking

 program in python. please and thanks i will leave a like
Write a program to simulate a bank transaction. There are two bankprogram in python. please and thanks i will leave a like

Write a program to simulate a bank transaction. There are two bank accounts: checking and savings. Your program should first ask for the type of account: Checking or Savings. Then ask for initial balances of the bank accounts. Reject negative balances. Then ask for the type of transaction: Deposit, Withdrawal, and Transfer. Then ask for the amount. Reject transactions that overdraw an account. At the end, display balances in the account. Additional information a) Use input function to receive user input b) Display error message if the choice is invalid a. Accounts can only be checking or savings b. Type of transaction can only be Deposit, Withdrawal, and Transfer c. The amounts cannot be negative d. Withdrawal amount cannot be more than the account balance c) User can enter lower or uppercase letters. For example: a. D ord for deposit b.Cor c for checking account d) User floating point numbers for the amounts e) Display formatted output Expected Output Enter the type of account (C = Checking S = Savings): C Enter the initial balance in the account: 10000 Enter the type of transaction (D = Deposit, W = Withdraw, T = Transfer): w Enter the amount to withdraw: 5000 Your checking balance after the transaction: 5000.00 Enter the type of account (C = Checking, S = Savings): s Enter the initial balance in the account: 15000 Enter the type of transaction (D = Deposit, W = Withdraw, T = Transfer):d Enter the amount to Deposit: 5000 Your savings balance after the transaction: 20000.00 Enter the type of account (C = Checking. S = Savings): k Enter the initial balance in the account: 15000 Enter the type of transaction (D = Deposit, W = Withdraw, T = Transfer):d Enter the amount to Deposit: 5000 Sorry, the account type is invalid Enter the type of account (C=Checking, S = Savings): s Enter the initial balance in the account: 5000 Enter the type of transaction (D = Deposit, W = Withdraw, T = Transfer):w Enter the amount to withdraw: 7000

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!