HOW TO Create a program that accept temperature in C and prints the equivalent in F and K
What language would you like to use? You'd have to know how to get input, how to use basic arithmetic, and how to print to the console! Beyond that, it's just knowing the formulas. http://chemistry.about.com/od/temperature/a/How-To-Convert-Celsius-To-Kelvin.htm http://www.mathsisfun.com/temperature-conversion.html
Start with an algorithm/pseudocode: Input C Calculate Kelvin using C with formula Calculate Fahrenheit using C with formula Output Kelvin and Fahrenheit. Once you have that (test it to make sure it works) by using test input with known answers then you can convert that algorithm/pseudocode to any programming language.
Join our real-time social learning platform and learn together with your friends!