Question: Write a pseudocode for a subset of 'n' numbers such that the running average computed by accepting the (n+1)th number, adding that to the previous

 Write a pseudocode for a subset of 'n' numbers such that

Write a pseudocode for a subset of 'n' numbers such that the running average computed by accepting the (n+1)th number, adding that to the previous set of numbers but eliminating the first, and recalculating the average (20 pts.) Example: For the numbers (2,5, 3, 7, 2,5, 3, 7, 1, 8, 4, 9, 2,5, 3, 9, 6) having a set of 4 to be averaged, the running average is {0.5, 1.75, 2.5, 4.25, 4.25, 4.25, 4.25, 4.25, 4, 4.75, 5, 5.5, 5.75, 5, 4.75, 4.75, 5.75)

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!