Computing average value of array and standard deviation


Question 1) Write a program which will input the array of 10 REAL4 numbers into the array, and that will compute the average value of the array and the standard deviation. The standard deviation is given by the relationship that σ is equal to the square root of ( the sum of the squares of the differences between each number and the average value, divided  by the number of numbers).

The basic algorithm is:

1. Input the array.

2. Compute the average

3. For each element in the array

a. Compute the difference between the number and the average.

b. Square the difference

c.  Add it to a sum

4. Divide by the number of numbers

5.Take the square root

The problem must display the numbers, the average and the standard deviation.

Question 2) Write a program which will input values for the following real4 variables and will compute and display value of the expression. Explain the contents of the FPU stack as the execution takes place.

(( a – b) + c) * ((d + e)/a) )

Request for Solution File

Ask an Expert for Answer!!
Assembly Language: Computing average value of array and standard deviation
Reference No:- TGS05508

Expected delivery within 24 Hours