# Assembly language

For this project, you will write a MIPS assembly language program to calculate periodically compounding interest. Your program should prompt the user to enter the necessary parameters for the calculation and continue to loop until the user opts to quit. The equation for periodically compounding interest is b = p( 1 + r)r, where b is the balance after the end of C applications of interest, p is the principal (starting balance) and r is the interest rate. Since MIPS does not have a power function, you will need to build one by iteratively multiplying the sum C times. This computation would normally require the use of floating-point variables and operations. However, the necessary precision can also be obtained by representing the money in integer units of pennies and by making the interest rate in terms of percentage. Once the correct number has been calculated, the correct magnitude can be calculated by dividing by 100r to get the balance in pennies. From this point, the division and modulus operations can be used to convert the answer to its standard format. Your program should include appropriate comments indicating what the code should be doing and what registers are being used for. After displaying the results, your program should exit cleanly.

1. 👍
2. 👎
3. 👁
1. so, what have you done so far?

1. 👍
2. 👎
2. Steve i only have the algorithm but need help in using the proper commands and registers

1. 👍
2. 👎

## Similar Questions

1. ### Interest

You deposit \$4000 in an account earning 5% interest compounded monthly. How much will you have in the account in 5 years? Use n=12 for monthly compounding,n=4 for quarterly compounding,n=2 for semiannual compounding, and n=1 for

2. ### Algebra II

An investment service promises to triple your money in 12 years. Assuming continuous compounding of interest, what rate of interest is needed? For the question is it asking me if simple interest or continuously compounded interest

3. ### finance

Suppose the spot rates for 1 and 2 years are s_1 = 6.3\%s 1 ​ =6.3% and s_2 = 6.9\%s 2 ​ =6.9% with annual compounding. Recall that in this course interest rates are always quoted on an annual basis unless otherwise specified.

4. ### c programming

a student designed a program to accept the age of an employee and then compute the employees retirement year and display the same in a statement on the screen required. a) write out the pseudo-code for the program above b) write

1. ### VISUAL BASIC PROGRAMMING

3. WRITE A VISUAL BASIC PROGRAM TO CALCULATE THE SIMPLE INTEREST ON A LOAN AMONUT OF 50000 GHANA CEDIS AT AN INTEREST RATE OF 30% FOR A NUMBER OF YEARS WHICH WILL BE SPECIFIED BY THE USER.

2. ### Programming

Write a pseudocode program that asks the user for an integer between 1 and 12. The program is to calculate the times table for that number. So for example, if the user enters a 2, then the program has to calculate 2x1 and display

3. ### History

What was the code name for the government program in which an atomic bomb was designed and constructed? Project Mogul Project Nutmeg Operation Morning Light Manhattan Project **

16. Which of the following is used when a political activist reminds others of the trials and tribulations facing the nation if change does not occur? (1 point) ethos pathos logos 18. Identify the sentence that relies most

1. ### Programming

Language - PYTHON Design a program that calculates the total amount of a meal purchased at a restaurant. The program should ask the user to enter the charge for the food, and then calculate the amount of a 15% tip and 7% sales

2. ### gtuc

1. WRITE A PROGRAM TO CALCULATRE THE AREA OF A RECTANGLE OF LENGTH =5 CM AND BREADTH=8CM. 2. CALCULATE THE PRICE OF AN ITEM COSTING 100 GHANA CEDIS AFTER A DISCOUNT OF 10% IS APPLIED TO IT. 3. WRITE A PROGRAM TO CALCULATE THE

3. ### Is My Answer Correct Tutors?

You deposit \$9,000 in an account earning 5.5% interest compounded semiannually. How much will you have in the account after 10 years? (Note: Use n=12 for monthly compounding, n=4 for quarterly compounding, n=2 for semiannual

4. ### math

If you deposit \$5000 into an account for 4 years, How much MORE interest would you earn by compounding vs simple interest of 5.5%? A. \$100 B. \$1100* C. \$1194 D. \$94