# MCS 260 Project One due Friday 14 September 2007 at 1PM print 'Welcome to the temperature convertor' x = raw_input('Give a number : ') fx = float(x) sfx = '%.2f' % fx c2f = 9*fx/5 + 32 # Celsius to Fahrenheit sc2f = '%.2f' % c2f c2k = fx + 273 # Celsius to Kelvin sc2k = '%.2f' % c2k f2c = 5*(fx - 32)/9 # Fahrenheit to Kelvin sf2c = '%.2f' % f2c f2k = f2c + 273 # Fahrenheit to Celsius sf2k = '%.2f' % f2k k2c = fx - 273 # Kelvin to Celsius sk2c = '%.2f' % k2c k2f = 9*k2c/5 + 32 # Kelvin to Fahrenheit sk2f = '%.2f' % k2f print sfx, 'Celsius is', sc2f, 'Fahrenheit and', sc2k, 'Kelvin' print sfx, 'Fahrenheit is', sf2c, 'Celsius and', sf2k, 'Kelvin' print sfx, 'Kelvin is', sk2c, 'Celsius and', sk2f, 'Fahrenheit'