Question: Write a MIPS assembly program to first set up 10 bank accounts. Store the 10 account numbers in an array named Accounts and the 10

 Write a MIPS assembly program to first set up 10 bank

Write a MIPS assembly program to first set up 10 bank accounts. Store the 10 account numbers in an array named Accounts and the 10 balances in an array named Balances (hard-code them into your program). Your program will then repeatedly read in an account number, a transaction type (0 for deposit and 1 for withdraw), and a transaction amount. Your program will display the new balance after the transaction. An error massage will be printed if an incorrect account number is entered. A withdraw request will be rejected if not enough fund is in the account. Your program will terminate when -1 is entered as an account number. Use following account numbers and balances to initialize the arravs: Account B 205 212 200 203 201 231 209 207 211 250 alance 123 5000 4 79 987 500 40 904 200 Write a MIPS assembly program to first set up 10 bank accounts. Store the 10 account numbers in an array named Accounts and the 10 balances in an array named Balances (hard-code them into your program). Your program will then repeatedly read in an account number, a transaction type (0 for deposit and 1 for withdraw), and a transaction amount. Your program will display the new balance after the transaction. An error massage will be printed if an incorrect account number is entered. A withdraw request will be rejected if not enough fund is in the account. Your program will terminate when -1 is entered as an account number. Use following account numbers and balances to initialize the arravs: Account B 205 212 200 203 201 231 209 207 211 250 alance 123 5000 4 79 987 500 40 904 200

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!