Question: Write a program that converts Fahrenheit temperatures to Celcius temperatures. The formula is Note: Do not use 1.8 in place of (5/9) your program needs

Write a program that converts Fahrenheit temperatures to Celcius temperatures. The formula is

Note: Do not use 1.8 in place of (5/9) your program needs to be performing this calculation. Be careful when selecting data types.

F is the Fahrenheit temperature and C is the Celsius temperature. Create a display that will show the Celsius temperature and its equivalent Fahrenheit temperature. You should assign the Fahrenheit temperature to 83. Keep in mind that temperatures do not have to necessarily be whole numbers (in other words, use decimals). Please notice that within the formula the number 5 and the number 9 are INTEGERS.

Your answer should be 28.333

We cannot use an if/else statement. Has to be decimal formatting which is explained by ...

Assume the variable total has the dollar amount stored in it and you want to print that to the screen, you will need to have:

coutsetprecision(2)endl;

The combination of "fixed" specifies that we are using 2 decimal places, if we wanted 3 decimal places we would change the number to three and so on.

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!