Answered step by step
Verified Expert Solution
Question
1 Approved Answer
To save time we are not asking the user what unit of measure the number entered has ( so it does not matter AT ALL
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 was entered
F is C and K
C is F and K
K is F and C
TO MAKE THINGS EASIER here are the formulas for calculating each...
deg C deg F times
deg C deg K
deg F deg C x
deg F deg K x
deg K deg C
deg K deg F x
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 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
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 ifthenelse 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started