Question: C++ Objectives: Become familiar with parameters. Instructions Write a program that will: Use a programmer-built function to read in a length in feet and inches:
C++
Objectives:
Become familiar with parameters.
Instructions
Write a program that will:
Use a programmer-built function to read in a length in feet and inches:
inputData(&double, & double)
Please input feet to convert: read feet
Please input inches to convert read inches
Send both values to a function to convert these values to meters:
conversion(double, double)
Convert feet to meters: inputFeet * .3048
Convert inches to meters: inputInches / 12 * .3048
Return the total meters
Send the converted amount to: printConversion(double)
Print only the converted amount with a label
Send the original and converted amount to an OVERLOADED funtions
printConversion( double, double, double)
The overloaded function will take the 2 original numbers and the converted amount and print all three with labels
Allow the user to enter as may numbers to convert as desired by having the steps outlined above in a sentinel controlled loop.
Hit enter for more numbersanything else to quit!
The input function should use arguments by reference.
The other functions will pass by value.
These three functions should be invoked in the main method.
Use good programming practices as presented in class.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
