Question: C + + Average of Values - To get the average of a series of values, you add the values up and then divide the
C Average of Values To get the average of a series of values, you add
the values up and then divide the sum by the number of values. Write
a program that stores the following values in five different variables:
and The program should first calculate the sum of
these five variables and store the result in a separate variable named
sum. Then, the program should divide the sum variable by to get
the average. Display the average on the screen.Average of Values To get the average of a series of values, you add
the values up and then divide the sum by the number of values. Write
a program that stores the following values in five different variables:
and The program should first calculate the sum of
these five variables and store the result in a separate variable named
sum. Then, the program should divide the sum variable by to get
the average. Display the average on the screen.
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
