I'm trying to build a MPH calculator using a function header other than main.
These are the instructions:
Write a program that will input miles traveled and hours spent in
travel. The program will determine miles per hour. This calculation must
be done in a function other than main; however, main will print the
calculation. The function will thus have 3 parameters: miles, hours, and
milesPerHour. Which parameter(s) are pass by value and which are
passed by reference? Output is fixed with 2 decimal point precision.
I'm getting an error on line 2 (at the first brace in the code) stating "Expected unqualified-id", but I am unclear on how to fix this issue. Here's the code: