Question: Consider the problem of computing the average of n values stored at locations: N 1 , N 2 , . . . Nn . Assume

Consider the problem of computing the average of n values stored at locations: N1, N2,... Nn.
Assume that the value n is stored in memory location whose address is N. The sum of the values
is to be stored in memory location at address SUM and that the average is to be stored in location
at address AVG. You are required to write a main program and a subroutine called ADDNUM.
The subroutine computes the sum of n numbers while the main program computes the average.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!