Question: I am making a mips program where I take in numbers until a negative number is used or there are 100 entries. For this program
I am making a mips program where I take in numbers until a negative number is used or there are 100 entries. For this program I am not placing those values into array, but intead I am using a running total. I have to get the sum, mean, min/max, and variance. so far I can get the sum and the variance. what can I do to get the variance from a running total. How can I use just the mean and the sum to get the variance or is there anything I can do when each number is entered without using an array.
Enter integer values, one per line, terminated by a negative value.
1
2
3
4
5
6
7
8
9
-1
Sum is: 45
Min is: 1
Max is: 9
Mean is: 5.00000000
Variance is: 6.66666651
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
