Question: Using the MIPS simulator to do the program, it must prompt the user to input an integer value between 1 and 5 inclusive. If the
Using the MIPS simulator to do the program, it must prompt the user to input an integer value between 1 and 5 inclusive. If the user input an integer greater than 5 or less than 1, the program must prompt an error message and ask user to try again. This process repeated until the user enters a valid integer, say n. Then, the program must compute the sum of the cube of the numbers from 1 to n and display the result on the console. For example, when the input integer is 3, the result is 36(which is 13 + 23+33). The messages showing on the console should be: Please input the integer: 6 !!!Invalid, try again Please input the integer: 3 The result is: 36
Submit a copy of your code as well as the results for inputs 4 and 5.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
