Question: Write a MIPS program. Your program should prompt the user to enter exactly five integer values that range from the highest and lowest possible values
Write a MIPS program. Your program should prompt the user to enter exactly five integer values that range from the highest and lowest possible values for 32 bit signed integers. That range is -2147483648 to 2147483647. The following steps must be taken:
1. After each number is read it you must convert it to a 32 floating point number and store it into an array storage location.
2. After all five numbers are entered, print out the list in the order they were entered with an appropriate header.
3. Display the Sum of the Numbers in floating point format
4. Display the smallest of the values
5. Display the largest of the values
6. Display the mean or average of the values.
7. Display the variance which is derived from the following formula:
Sample Run:
Enter 5 integer numbers: Enter another Number: 24 Enter another Number: 5 Enter another Number: 160 Enter another Number 1 Enter another Number: 45
Floating Point List
24.00000000
5.00000000
160.00000000
1.00000000
45.0000000
The Sum of the numbers is: 235.00000000
The Smallest number is: 1.00000000
The Largest number is: 160.00000000
The Mean of the numbers is: 47.00000000
The variance of the numbers is: 4295.50000000
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
