Need help please!!

closed account (9N7koG1T)
Output a prompt using the cerr object that instructs the user to type in a temperature in °F (i.e. Fahrenheit).

Write code that converts the Fahrenheit temperature into Kelvin, Celsius, Rankine, and Reaumur.

The output of your program should be formatted as follows.
72 degree Fahrenheit in:
...Kelvin is 295.37
...Celsius is 22.22
...Rankine is 531.67
...Reaumur is 17.78

-9 degree Fahrenheit in:
...Kelvin is 250.37
...Celsius is -22.78
...Rankine is 450.67
...Reaumur is -18.22

0 degree Fahrenheit in:
...Kelvin is 255.37
...Celsius is -17.78
...Rankine is 459.67
...Reaumur is -14.22

In addition to the turning in the source code for your program, you must also submit a copy of the output generated by your program for the following three user supplied inputs: 72, 0 and -9.
Help

Printing floating-point numbers... insert near top of code...
cout.setf(ios::fixed, ios::floatfield);



#include <iostream>
using namespace std;

int main(int,char**) {
double Fahrenheit,Kelvin,Celsius,Rankine,Reaumur ;

cout << " Type a temperature in Fahrenheit and press ENTER: " ;
cin >> Fahrenheit;

Kelvin=(Fahrenheit + 459.67) * 5 / 9;
Celsius=(Fahrenheit-32) * 5/9;
Reaumur=(Fahrenheit-32) * 4/9;
Rankine=Fahrenheit+459.67;
cout << Fahrenheit << " degree Fahrenheit in Kelvin is " << Kelvin << endl ;
cout << Fahrenheit << " degree Fahrenheit in Celsius is " << Celsius << endl ;
cout << Fahrenheit << " degree Fahrenheit in Rankine is " << Rankine << endl ;
cout << Fahrenheit << " degree Fahrenheit in Reaumur is " << Reaumur << endl ;


system( "pause" ) ;
return 0 ;
}

I could not understand these parts;

1-)*/*/In addition to the turning in the source code for your program, you must also submit a copy of the output generated by your program for the following three user supplied inputs: 72, 0 and -9.*/*
2-)*/*Help

Printing floating-point numbers... insert near top of code...
cout.setf(ios::fixed, ios::floatfield);

Do I need to add any part or parts? what are these parts for?
Topic archived. No new replies allowed.