Lexington High School Mathematics Math Dept. Front Page  | Student Links  | Family Links 
Introduction to C++, Kevin Kelly Kelly Front Page  | C++ Course Guide | C++ Assignments | C++ Info

Assignment 10: Averaging numbers

due Thursday 3/7

Write a function average that has three numbers as its input values, and returns the average of those three numbers.

Also write a main program that allows the user to enter three numbers and find out their average. The computation must be done in the average function, but the input and output should still occur in the main part of the program. In other words, main should not include any arithmetic, and average should not contain any cin or cout statements.




Extensions

For 10 pts.: You must do all of the following: