You are writing a RAPTOR program that will act like an ATM machine. In order to access the ATM, the customer must enter their user name and their passcode. After 3 incorrect attempts at entering the u
You are writing a RAPTOR program that will act like an ATM machine. In order to access the ATM, the customer must enter their user name and their passcode. After 3 incorrect attempts at entering the user name and password, the program will end. The list of legitimate users along with their user ID, passcode and account balance are below.
There are only 3 functions that can be carried out by the ATM:
Deposit (adding money to the account)
Need assignment help for this question?
If you need assistance with writing your essay, we are ready to help you!
Why Choose Us: Cost-efficiency, Plagiarism free, Money Back Guarantee, On-time Delivery, Total Сonfidentiality, 24/7 Support, 100% originality
Withdrawal (removing money from the account)
Balance Inquiry (check current balance)
Customer Username Password Savings Balance Checking Balance
Robert Brown rbrown blue132 $2,500 $35
Jane Doe jdoe green789 $600 $900
Allow the user to make up to a maximum of 3 transactions at a time. After 3 transactions, the program will terminate. Each transaction cannot exceed $500; for example, a user cannot withdraw more than $500.00, if there is $500.00 available on their account. After a transaction is completed, the program will update the running balance and give the customer a detailed description of the transaction. A customer cannot overdraft on their account; if they try to withdraw more money than there is, a warning will be given to the customer. Also note that the ATM doesn’t distribute or collect coins – all monetary values are in whole dollars (e.g. an integer is an acceptable variable type). Any incorrect transaction types will display an appropriate message and count as a transaction.
Your flowchart must use modular design. Implement a menu-driven program to help assist the customer. Incorporate defensive programming to make sure that the user is inputting valid data. Use at least one array to capture the account information for each customer. Use correctly nested loops to allow customers to do multiple transactions. With good programming style, code the program using Raptor in a way that enhances readability and ease of use, including the appropriate use of internal documentation (comments) and external documentation (user friendly outputs).