Question: Task #1: Write a MIPS assembly program that asks the user about the total amount of money he wishes to withdraw from the ATM. Then,

 Task #1: Write a MIPS assembly program that asks the user

Task #1: Write a MIPS assembly program that asks the user about the total amount of money he wishes to withdraw from the ATM. Then, calculate the minimum number of bank notes (500, 100, 50, 10, 5, 1) required for his withdrawal. Finally, print out the count of each banknote required. If a bank note is not required (i.e., its count is zero), do not print it out. Sample Run: Enter Withdrawal amount: 11 500 Bank note: 6 100 Bank note: 2 10 Bank note: 4 1 Bank note: 3

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