Please convert to following temperatures (Fahrenheit to Celsius and vice versa). The formulas are: C x 9/5
Question:
Please convert to following temperatures (Fahrenheit to Celsius and vice versa). The formulas are:
C x 9/5 + 32 = F
(F - 32) x 5/9 = C
You must use appropriate naming conventions, proper indentation and spacing, "end-of-line" style for braces, and at least one line comment in your code. All output must be spelled correctly, with proper grammar. Be sure to include a program header block, like your previous assignments. Please replace the XX below with today's temperature, and ?? with the correct calculation. Be sure to separate the two groups of calculations using outputted hyphens as a separator line.
Today's temperature is XX degrees Fahrenheit. In Celsius it is: ??.????????????
The temperature 90 degrees Fahrenheit in Celsius is: ??.????????????
The temperature 80 degrees Fahrenheit in Celsius is: ??.????????????
The temperature 60 degrees Fahrenheit in Celsius is: ??.????????????
The temperature 0 degrees Fahrenheit in Celsius is: ??.????????????
-------------------------------------------------------------------------------
The temperature 100 degrees Celsius in Fahrenheit is: ??.0
The temperature 40 degrees Celsius in Fahrenheit is: ??.0
The temperature 30 degrees Celsius in Fahrenheit is: ??.0
The temperature 0 degrees Celsius in Fahrenheit is: ??.0
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill