Question: Make a program in C that converts measurments from one unit to another. initialize doubles and if statements, use Functions (no global variables.) Covert to
Make a program in C that converts measurments from one unit to another. initialize doubles and if statements, use Functions (no global variables.) Covert to a common unit to the desired unit
| From | Inches | Feet | Yards | Miles |
| Inches(I) | I | I / 12 | I / 36 | I / 63360 |
| Feet(F) | F * 12 | F | F / 3 | F / 5280 |
| Yards(Y) | Y* 36 | Y * 3 | Y | Y / 1760 |
| Miles(M) | M * 63360 | M * 5280 | M * 1760 | M |
The output should be:
Pick the type of conversion that you would like to do. T or t for temperature D or d for distance Enter your choice: d Enter the distance followed by its suffix (I,F,Y,M): 5 y Enter the new unit type (I,F,Y,M): i 5.00Y is 180.00I
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
