Question: In this exercise you will practice writing and using value returning functions by writing a C++ program that asks the user to enter five integer

 In this exercise you will practice writing and using value returning

In this exercise you will practice writing and using value returning functions by writing a C++ program that asks the user to enter five integer marks, uses a function to calculates the average of the five marks, then prints the average Add code to template file exd_average.cpp in the replit team project or create it in your IDE. Declare 5 integers in main() Prompt for and road five integer marks in main() Write and use a value returning function with five integer parameters to calculate and return the average to the calling function, main() Here is a partial prototype for you to use virint, int, int, Int, int Be sure the calculation in the function produces decimal places for a more preciso average. You must determine a return type that will preserve those decimal places Print the average in the main() function Compile and run the C++ program Tost the program with an input guaranteed to produce decimal places. For example: Please enter 5 Integer arks13 111 The average of those marks is: 1.2

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 Chemical Engineering Questions!