Get your Paper done by Experts

Online Assignment Help and Writing Services.

Week 6 Homework Assignment Program 5


Week 6 Homework Assignment
Program #5 - 30 points
Using what you have learned with functions:
You will accept as input an double value in inches.
From there, you will write 3 functions that will calculate each of the following:
InchesToFeet  - Calculate Inches to Feet
InchesToYards - Calculate Inches to Yards
InchesToMeters - Calculate Inches to Meters.
Here are the calculations:
   12 inches = 1 foot
    1 foot   = 0.3048 meters
    1 meter  = 1.0936133 yards
    3 feet   = 1 yard
You will output the results of each conversion as:
   18 inches = 1.5 feet
   18 inches = 0.5 yards
   18 inches = xxxxx meters
The functions should be listed before int Main().
You will be graded if your program compiles and if the output is correct.
You will be also graded if you created 3 functions, in addition to the int main function.
Are the functions in the correct location?
Are they commented?
Is the main code commented?
Is it neatly done?
Are variables defined correctly?

Named and initialized correctly?