Question: Program: Teller Machine Instructions: Write the code in ARM Assembly language (this program will run on a Raspberry PI) Your program will simulate the one-day
Program: Teller Machine Instructions: Write the code in ARM Assembly language (this program will run on a Raspberry PI) Your program will simulate the one-day operation of a simple teller machine. The teller will dispense, upon request, $20, and $10 bills up to $200 total per customer.
Your software will perform the following:
1. Display a welcome message and instructions on how to make a valid withdraw.
2. Reject any invalid withdraw requests. Examples: must be a multiple of 10, and must not be greater than $200. Assume the customer can only enter numbers on a 10-digit keypad (0-9).
3. When filling a valid withdraw request disperse $20 bills first.
4. When all the $20 bills are gone disperse $10 bills to fulfill the request.
5. Limit the total number of withdraws to 10. Invalid requests do not count as a transaction.
6. If there are insufficient funds on hand for a withdraw inform the customer and ask them to enter a lower request.
7. Once the inventory of bills is depleted or maximum withdraws is reached display an ending message and stop the program.
8. When the program ends print out: Total number of valid transactions, Number of $20s distributed, Number of $10s distributed, total amount of money distributed, remaining funds on hand.
9. The program will allow the entry of a secret code that when entered will display the following data:
a. Inventory of $20 and $10 bills
b. Remaining balance on hand
c. Current number of transactions
d. Total distributions made so far. Suggest the secret code be when a -9 is entered for the withdraw amount request
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
