The prominent bank in the city, BANK xxxx, intends to install a new automated teller machine (ATM) to allow bank customers to perform basic financial transactions. All ATM users should be able to view their account balance and withdraw cash. The User Interface of the ATM contains the following simulated hardware components:
• A screen that displays messages to the user and
• A keypad that receives numeric input from the user
Each day the ATM is loaded with 500 notes of 20 OMR currencies. Use the computer's monitor to simulate the ATM screen and the keyboard to simulate the ATM's keypad.
A session with the ATM begins with authenticating the user, based on the account number and PIN. The following details are stored about a customer:
• An account number
• PIN
• Customer name and
• Balance amount
The following sequence of events happens when a user initiates operation with the ATM:
• The screen displays a welcome message
• Prompts the user to enter an account number of 5 digits only
• Prompts the user to enter a PIN of 5 digits only
• If the account number and PIN are validated, the screen displays the following Main Menu with a welcome message containing the account holder's name. For example, Welcome Sulaiman Qasaabi
Main Menu:
1. View my balance
2. Withdraw Cash
3. Exit
Enter a choice:
For option 1, display the name of customer with balance amount available in the account followed by an option to return back to the Main Menu.
For option 2, only integer denominations are allowed to be withdrawn based on the balance in the account. Appropriate checkpoints and messages can be displayed on the screen. For example, if the balance is not sufficient as against the request for withdrawal, the message 'No sufficient balance in account', could be displayed and return back to Main Menu.
For option 3, the menu returns back to the welcome screen and waits for the next customer.
I would suggest you to look for this book C++ how to program 5 edition
they have this problem solved in that book.
Look for any ebook there are plenty of this ebook.