Question: Use a While Loop to create a program to calculate the running average of random numbers. The program will generate random numbers from 1 to
Use a While Loop to create a program to calculate the running average of random numbers. The program will
generate random numbers from to You will display the running average of the last five numbers
generated. For example, if the first nine random numbers generated were then the first
average displayed would be ; The next average displayed would be ;
And so on So every iteration you are showing the average of the five most recent random
numbers. Add timing so that the While Loop executes slowly enough that the user can see the data in the
indicators.
Your program will have an indicator to show the current Random Number and an indicator to show the Running
Average note the Running Average display should show until you have the first random numbers
averaged.
Add a third indicator. This indicator will show the highest random number generated by the program. To do this
you will need to examine each new random number and compare it to the previous highest random number
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
