Question: Use C programming Modify main.c to convert metric lengths (meters, etc.) from arbitrary metric unit to arbitrary metric unit. You should read and answer the

Modify main.c to convert metric lengths (meters, etc.) from arbitrary metric unit to arbitrary metric unit. You should read and answer the questions in the questions file as well. HINT: Do the input and output parts first before starting the conversion part. For example: the user may input 620.3 km to Mm and your program will output: 600.300 km is 0.600 Mm Another Sample input/output: 5000 *m to km 5000.000 m is 5.000 km You must support the following metric prefixes M - 10^6 k - 10^3 * - 1 (Use . if you wish to input just meters, e.g. 5 *m, the output should not include the *, just m) d - 10^-1 - 10^-2 m - 10^-3 You must output your numbers with 3 decimal places. You must define the conversion factors above as constants in your code. Think carefully and design your approach before starting. This can be done in about 1 - 1.5 printed page of code. Jumping in immediately may make your code get huge and lead to extra work. c main. s aved #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
