Question: Temperature Conversions Write a program (C++) to in include the following: 1.Generate a table of conversions from Fahrenheit to Celsius for values from 0 degrees

Temperature Conversions

Write a program (C++) to in include the following:

1.Generate a table of conversions from Fahrenheit to Celsius for values from 0 degrees F to 100 degrees F. Print a line in the table for each 5-degree change. Use a while loop in your solution.

2.Generate a table of conversions from Fahrenheit to Kelvin for values 0 degrees F to 200 degrees F. Allow the user to enter the increment in degrees Fahrenheit between the lines. Use a do/while loop in your solution.

3.Generate a table of conversions from Celsius to Rankin. Allow the user to enter the starting temperature and increment between lines. Print 25 lines in the table. Use a for loop or a while loop in your solution.

IMPLEMENTATION:

Validate increments (must be greater than 0).

SAMPLE OUTPUT:

Fahrenheit to Celsius in 5-degree increments

0 F -17.78C

5 F -15.00C

10 F -12.22C

15 F -9.44C

20 F -6.67C

25 F -3.89C

30 F -1.11C

35 F 1.67C

_______________________

Enter increment in degrees Fahrenheit => 5

Farenheit to Kelvin in 5-degree increments

0 F 255.37 K

5 F 258.15 K

10 F 260.93 K

15 F 263.71 K

20 F 266.48 K

25 F 269.26 K

_____________________________________

Enter starting temperature in Celsius =>0

Enter increment in degrees Celsius => 0

Enter increments in degrees Celsius(must be greater than 0)=> 5

Celsius to Rankin

0.00 C 491.67 R

5.00 C 500.67 R

10.00 C 509.67 R

15.00 C 518.67 R

20.00 C 527.67 R

25.00 C 536.67 R

30.00 C 545.67 R

------------------------------------------------------

Point Distribution:

-50 Does not compile

-5 Warnings

-5 No description multiple line comments (name, date, etc)

-10 No single line comments (logic, input, output, etc)

-10 Does not validate increments (must be greater than 0)

-15 Incorrect results ----------------- while loop.

-15 Incorrect results ----------------- do/while loop.

-15 Incorrect results ----------------- for or while loop.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!