Question: Please name your source file: PC2_5.CPP To get the average of a series of values, you add the values up and then divide the sum
Please name your source file: PC2_5.CPP 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: 28, 32, 37, 24, and 33. 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 5 to get the average. Display the average on the screen. TIP: Use the double data type for all variables in this program. Using no user-entered test data: Your output should look like this: Sum: 154, Average: 30.8
This is C++ and use visual studio 2017 please.
Use blank lines to separate the major parts of your main function.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
