Question: Writhe a complete, working C++ program called euidB.cpp (where quid is your EUID) that does the following: define an initialize two constant integers called

Writhe a complete, working C++ program called euidB.cpp (where " quid" is your EUID) that does the following: define an initialize two constant integers called FIVE and TWO with the values 5 and 2, respectively. Declare and define an overloaded function (i.e., a set of two functions) that returns a double for the average of the five integers or the two floating-point number that are passed in to the function. You must se the defined constants in your average calculation as appropriate. You must type cast the integer constant FIVE as a double in its calculation. In main, you shall call the overloaded function, passing in the literal values 18, 35, 16, 42, and 56, and subsequently print out the returned result for these integers. You shall call the overloaded function again in main, but with the literal values 14.2 and 29.1, and then print out the returned result for these floating-point number. Due to time constraints, no comments are required in hits code. Writhe a complete, working C++ program called euidB.cpp (where " quid" is your EUID) that does the following: define an initialize two constant integers called FIVE and TWO with the values 5 and 2, respectively. Declare and define an overloaded function (i.e., a set of two functions) that returns a double for the average of the five integers or the two floating-point number that are passed in to the function. You must se the defined constants in your average calculation as appropriate. You must type cast the integer constant FIVE as a double in its calculation. In main, you shall call the overloaded function, passing in the literal values 18, 35, 16, 42, and 56, and subsequently print out the returned result for these integers. You shall call the overloaded function again in main, but with the literal values 14.2 and 29.1, and then print out the returned result for these floating-point number. Due to time constraints, no comments are required in hits code
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
