Question: Write a C + + program to display the following information prompt: Please type in the total number of data values to be averaged: In

Write a C++ program to display the following information prompt: Please type in the total number of data values to be averaged: In response to this prompt, the program should accept a user-entered number, and then use this number to control the number of times the while loop is executed. So, if the user enters 5 in response to the prompt, the program should request input of five numbers and display the average of the next five numbers entered. Submit code with sample run and .cpp file.

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 Programming Questions!