Pure Programmer
Blue Matrix


Cluster Map

Project: Temperature Table

Write a program that displays a temperature conversion table. The table should have columns for Celcius, Fahrenheit, Kelvin and Rankine scales. Display rows for -270°C to 120°C in increments of 5°C.

See [[Conversion of units of temperature]]

Output
$ g++ -std=c++17 TemperatureTable.cpp -o TemperatureTable -lfmt $ ./TemperatureTable C F K R -270.00 -454.00 3.15 5.67 -265.00 -445.00 8.15 14.67 -260.00 -436.00 13.15 23.67 -255.00 -427.00 18.15 32.67 -250.00 -418.00 23.15 41.67 -245.00 -409.00 28.15 50.67 -240.00 -400.00 33.15 59.67 -235.00 -391.00 38.15 68.67 -230.00 -382.00 43.15 77.67 ... 75.00 167.00 348.15 626.67 80.00 176.00 353.15 635.67 85.00 185.00 358.15 644.67 90.00 194.00 363.15 653.67 95.00 203.00 368.15 662.67 100.00 212.00 373.15 671.67 105.00 221.00 378.15 680.67 110.00 230.00 383.15 689.67 115.00 239.00 388.15 698.67 120.00 248.00 393.15 707.67

Solution