Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Microsoft SQL Server 2014 Integration Services

Authors: Brian Knight, Devin Knight

1st Edition

1118850904, 9781118850909

More Books

Students also viewed these Databases questions