Question: using python only ....... you are only allowed to use if-else and elif do not class ... For this excircsise, use if-elif instead of nested

using python only ....... you are only allowed to use if-else and elif do not class ...

For this excircsise, use if-elif instead of nested if-else whenever possible

using python only ....... you are only allowed to use if-else andelif do not class ... For this excircsise, use if-elif instead of

Write a program to simulate the two bank account transactions i.e. deposit and withdraw. Your program will read the initial balance. Then, it will display to the user a menu with the 2 choices (deposit or withdraw). Once the user chooses the transaction, the program will ask for the transaction amount. After that, it will display the new balance. Note: The user can enter d or D for deposit and w or W for withdraw. Requirements: - initial balance must be >0 - withdraw amount must be >0 and 0 Sample run 1: Enter initial balance: 25 initial balance must be positive Sample run 2: Enter initial balance: 1200 Enter W (Withdrawal) or D (deposit): Q Wrong transaction Sample run 3: Enter initial balance: 1250 Enter W (Withdrawal) or D (deposit): w Enter withdrawal amount: 150 Withdraw amount must be positive Sample run 4: Enter initial balance: 1000 Enter W (Withdrawal) or D (deposit): w Enter withdrawal amount: 2500 withdraw amount cannot exceed balance Sample run 5: Enter initial balance: 1000 Enter W (Withdrawal) or D (deposit): d Enter deposit amount: 1200 Your new balance is 2200

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!