Question: Exercise 7 . 4 - ATM Case Study ( Python ) Enhance the ATM program by adding a login step. Assume that the user's user

Exercise 7.4- ATM Case Study(Python)
Enhance the ATM program by adding a login step.
Assume that the user's user name can be any non-empty string.
Assume the user's password is the user name plus "123!" at the end.
Ask user to enter user name and password, then check the password,
if it is the correct, display "Welcome" followed by the user name, then display the main menu.
If the password is incorrect, display "Password incorrect", display the login menu again.
Sample output:
Welcome to Mission Bank
Enter user name: John
Enter password: John123
Invalid password
Welcome to Mission Bank
Enter user name: John
Enter password: John123!
Welcome John
Main menu
1: check balance
2: withdraw
3: deposit
4: exit
Enter a choice: 1
Current balance: 500
Main menu
1: check balance
2: withdraw
3: deposit
4: exit
Enter a choice: 4
Exercise 7 . 4 - ATM Case Study ( Python )

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 Programming Questions!