Question: Exercise 7 . 4 - ATM Case Study ( Python ) Enhance the ATM program by adding a login step. Assume that the user's user
Exercise ATM Case StudyPython
Enhance the ATM program by adding a login step.
Assume that the user's user name can be any nonempty string.
Assume the user's password is the user name plus 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: John
Invalid password
Welcome to Mission Bank
Enter user name: John
Enter password: John
Welcome John
Main menu
: check balance
: withdraw
: deposit
: exit
Enter a choice:
Current balance:
Main menu
: check balance
: withdraw
: deposit
: exit
Enter a choice:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
