programming MIPS ask

posted by .

Write a MIPS assembly language program that will cover the following
steps:
Prompt the user to enter a first integer named i1
Prompt the user to enter a second integer named i2
Compute i1+i2-200
Print the value of the result
Repeat
The program should enforce the rule that the two entered integers must be in the interval
[100, 200]. If the entered integer is not inthe specified range, prompt again the user to
enter an integer in the specified range.

  • programming MIPS ask -

    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)t, where b is the balance after the end of t 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 t times.
    Your program should include appropriate comments indication what the code should doing and what registers are being used for. After displaying the results, your program should exit cleanly. You should test your programs using the SPIM simulator

Respond to this Question

First Name
School Subject
Your Answer

Similar Questions

  1. C Programming

    Write a program that prompts the user to enter a temperature, followed by a letter representing Celsius (C) or Fahrenheit (F). Then prompt the user for the conversion type and print the results to the screen with one decimal point. …
  2. programming

    write a java application to calculate the exponent value of a number using the following specification <Prompt the user to enter an integer value <Pass the integer value to the method squares the number and to a method cubes …
  3. programming MIPS ask 3

    Write a MIPS assembly language program for the following for loop: Pseudocode: int x; # for(x=10; x>0; x--){ # printf("x=%d", 4x); #} In the program use the slt or slti instruction and sll
  4. C programming

    Build a program that allows a user to select one of the following four menu options: enter new integer value, print pointer address, print integer address, and print integer value. For this program you will need to create two variables: …
  5. Computer Science

    write a program that will prompt the user for a value and print the value entered to the screen. The program stops when the user enters a value less than zero. I need an IPO chart, pseudocode and C++
  6. programming

    Write a program which allows user to enter 10 student names and scores for Java programming 1 and Java programming 2. Allow user to choose which course they want to enter the record for. Use the loop to ask input from user. The program …
  7. PROGRAMMING

    1. Make a C program that will input two integers and then to enter an option as follows: • 1 = to add the two integers. • 2 = to subtract the second integer from the first. • 3 = to multiply the integers • 4 = to divide the …
  8. computer programing

    : Build a program that allows a user to select one of the following four menu options: enter new integer value, print pointer address, print integer address, and print integer value. For this program you will need to create two variables: …
  9. Computer Science/Pseudo Code Python

    Hi, I'm confused about an assignment. I'm not sure what to do and would like some help. An example: Write a program that obtains two integer numbers from the user. It will print out the sum of those numbers. Pseudo code: Prompt user …
  10. 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 …

More Similar Questions