Question: Write a C++ program that will calculate the average of four numbers that are stored in variables. The variables are all of the data type:

 Write a C++ program that will calculate the average of four

Write a C++ program that will calculate the average of four numbers that are stored in variables. The variables are all of the data type: double. The values that are stored are 578, 986, 1866, and 714 Display a message showing the sum of all four numbers (ex. The sum of those numbers is") On the next line, display the average of all four numbers (ex. -"The average of those numbers is .")

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