I am a beginner in C and I I am having a hard time with my first program for school ever in C and need to write a C program called TheConverter that converts from the us customary units of measurement to their counter parts in metric system.
the user will be allowed to choose from the following
gallon -> liter
lb -> kg
inch -> mm
Quit the program
Once the user has selected the unit of measurement they wish to convert they should be prompted to enter the numbeer of units to convert. The program should then convert this amount into appropriate metric unit and display the result using 2 decimal places.
the user should be allowed to continue with the program until they select the option to quit
The program should not ask the user if they wish to convert another unit (Y/N).
Nor should the have to answer any other promptsonce selected the option to quit.
the program should contain:
one of the looping control structures to repeat the processuntil they selected the quit option
A 'switch' statement in the main program that use the selection entered by the user to switch between the different conversions
the user will be allowed to choose from the following
gallon -> liter
lb -> kg
inch -> mm
Quit the program
Once the user has selected the unit of measurement they wish to convert they should be prompted to enter the numbeer of units to convert. The program should then convert this amount into appropriate metric unit and display the result using 2 decimal places.
the user should be allowed to continue with the program until they select the option to quit
The program should not ask the user if they wish to convert another unit (Y/N).
Nor should the have to answer any other promptsonce selected the option to quit.
the program should contain:
one of the looping control structures to repeat the processuntil they selected the quit option
A 'switch' statement in the main program that use the selection entered by the user to switch between the different conversions
Comment