2) Here from Wikipedia, are conversions from to various temperature scales from Kelvin. Write a program which takes in a temperature in Kelvin and converts it into each of these other temperature scales.
| from Kelvin | ||
|---|---|---|
| Celsius | [°C] = [K] − 273.15 | |
| Fahrenheit | [°F] = [K] × 9⁄5 − 459.67 | |
| Rankine | [R] = [K] × 9⁄5 | |
| Delisle | [°De] = (373.15 − [K]) × 3⁄2 | |
| Newton | [°N] = ([K] − 273.15) × 33⁄100 | |
| Réaumur | [°Ré] = ([K] − 273.15) × 4⁄5 | |
| Rømer | [°Rø] = ([K] − 273.15) × 21⁄40 + 7.5 |
Then, submit the resulting program on the form below.
No comments:
Post a Comment