Question: Write a C++ program that will read in a length in feet and inches and output the equivalent length in meters and centimeters. Use at
Write a C++ program that will read in a length in feet and inches and output the equivalent length in meters and centimeters.
- Use at least three functions: one for input, one or more for calculating, and one for output.
- State 'precondition' and 'postcondition' for each function in comment lines.
- Include a loop that lets the user repeat this computation for new input values until the user wishes to end the program.
- There are 0.3048 meters in a foot and 100 centimeters in a meter, and 12 inches in a foot.
- Declare variables to express all constant values used in the code with the modifier const. And use those in your code.
- Use an appropriate data type for each variable and function.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
