temperature convention program

hello i cant get my results under the right degree name any suggestion??
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
int main()
{const double max_celsius =235;
const double start_val =-100;
const double STEP_SIZE= 4;
double celsius, fahren,kelvin;
ofstream output ("e:result14.dat");
cout<< "name" <<endl;
output<< "name" <<endl;
cout << "Degrees    Degrees    Degrees\n"
     << "Celsius   Fahrenheit  Kelvins\n"
     << "-------   ----------  -------\n";
celsius = start_val;
cout<< setiosflags (ios::showpoint)
    << setprecision (4);
while (celsius <= max_celsius)
{
fahren=(9.0/5.0)*celsius +32.0;
cout <<setw(4)<< celsius <<endl;
cout <<setw(13)<< fahren <<endl;
kelvin=celsius+273.15;
cout <<setw(4) << kelvin <<endl;
output <<setw(4) << celsius <<endl;
output <<setw(13) <<fahren <<endl;
celsius = celsius + STEP_SIZE;
  }


      system("PAUSE");
      return 0;
}
Topic archived. No new replies allowed.