Question: [ 2 0 pts ] The conversion formula from Kelvin ( deg K ) to Celsius ( deg C ) is as follows:

[20 pts] The conversion formula from Kelvin (\deg K) to Celsius (\deg C) is as follows:
[\deg C]=[\deg K]-273.15
Write a script that:
Asks the user their name
Asks the user the current temperature in Celsius (\deg C)
Converts the temperature to Kelvin (\deg K)
Prints the results using fprintf in the following format:
Hello John! 26.85C is equivalent to 300.00K
(This is just an example. Your output should depend on the user inputs. John and 26.85 were example inputs in this case.)
Your numbers should have a precision of two digits after the decimal while printing.

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!