Question: The purpose of this exercise is to practice on using user defined value returning functions . Write a C++ program that asks the user to

The purpose of this exercise is to practice on using user defined value returning functions.

Write a C++ program that asks the user to enter five integer marks and find out the average of the five marks.

Please note that you will pass the five marks to a function called AVG(int, int, int, int, int) to calculate the average and return the average to the calling function, the main() function.

Print out the average in the main() function.

Compile and run the C++ program.

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!