Uploaded by John Knezevich

Lab10 (2)

advertisement
CSC 175 – Problem Solving and Programming I
Lab #10
Points:20
Function Overloading
Instructions
Download the Lab10_Given.cpp source file and complete the program that calculates the average of
various values sent to the avg function. To do this you will create four versions of the avg function that
match the arguments of the four calls to avg as shown in the given file.
Do not change the given source file except to add the function definitions to overload the avg function
and the function to print the standard header.
Below is an example output of the program when you have it working.
Example Screen Capture
Download