| 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 |
Your assignment is to rewrite your temperature conversion program (from Assignment 4) so that the computation is performed by a function called FtoC. This function should take a Fahrenheit temperature as a parameter (an input), and return a Celsius temperature.
While the computation will be done in the FtoC function, the input and output should still occur in the main part of the program. In other words, main should not include any arithmetic, and FtoC should not contain any cin or cout statements.
Run your program three times with these test values: 98 degrees, 5.5 degrees, -40 degrees.
For 10 pts.: Besides the above, write a separate program that does the following: