Question: Write a MIPS Assembly program that prompts the user to enter ten floating-point, real, or decimal numbers then the program stores the numbers in an
Write a MIPS Assembly program that prompts the user to enter ten floating-point, real, or decimal numbers then the program stores the numbers in an array. Each number is entered on a separate line. The program then computes and displays the sum and average each on a separate line.
Requirements:
Use MIPS conventions to write
A function that creates the array of numbers. This function prompts the user to enter the numbers, gets the numbers, and stores them in an array. The array and its size should be initialized in the data declaration section of your program before the main function;
A function that uses the array to compute and return the sum; and A function that receives the sum and the size of the array then computes the average.
The main function displays the sum and average.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
