Question: give a program in c language. To save time we are not asking the user what unit of measure the number entered has ( so

give a program in c language. To save time we are not asking the user what unit of measure the number entered has (so it does not matter AT ALL what unit of measure that number had originally!!!)
so.... a number is entered...
assume that it is Fahrenheit...then show it as such and then show its conversion to Celsius and Kelvin
...in the same run of the program...
assume that it is Celsius...then show it as such and its conversion to Fahrenheit and Kelvin
...then...
assume that it is Kelvin...then show it as such and its conversion to Celsius and Fahrenheit
So typical input would ask
"Please enter a number to be converted>"
...then a number would be entered
typical output could look like this if 20 was entered
"20.00F is -3.89C and 266.48K
20.00C is 68.00F and 293.15K
20.00K is -423.67F and -253.15C"
TO MAKE THINGS EASIER here are the formulas for calculating each...
\deg C =(\deg F -32)\times 5/9
\deg C =\deg K -273.15
\deg F =(\deg C x 9/5)+32
\deg F =(\deg K x 9/5)-459.67
\deg K =\deg C +273.15
\deg K =(\deg F +459.67) x 5/9
ALSO!!!!
You must do the SAME operation (in the same program code) as if the number entered was feet, miles or meters but please go find your own conversion formulas for this. So, that means that there will be 3 more lines of output besides the temperature conversion output.
NOTES
\deg K can NEVER be negative, so after populating your variables for each temperature scale and if Kelvin is actually is actually a negative number, DO NOT give the same output but instead print a message saying "The number entered cannot be converted since it is below Absolute 0"
Negative and positive distances are essentially the same so, please, if a negative number is entered please convert it to a positive number before converting miles, feet and meters.
Since some of these requests require a conditional (if-then-else), please refer to the code called "testif.c" in our class's dropbox directory for an example you can follow

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!