# data[].attributes.body
ERROR FREE
#include<iostream>

using namespace std;

class Temp

{ float f, c;

public:

void enter()

{ cout<<"Enter temperatures in Farenheit : ";

cin>>f;

}

void cal()

{ c = (f-32)/1.8;

}

void dis()

{ cout<<"Temperatures in Celcius is "<<c<<endl;

}

};

int main()

{

Temp a;

a.enter();

a.cal();

a.dis();

}

# data[].attributes.body
#include <iostream>
#include <iomanip>
using namespace std;

class Temp{
float f,c;
public :
void flo()
{
cout<<"Enter temperature in Farenheit : ";
cin>>f;
}
void cal()
{
c = (f-32)/1.8;
}
void display()
{
cout<<fixed<<setprecision(1)<<f<<" Farenheit is equal to "<<c<<" celcius.";
}
};

int main()
{
Temp a;
a.flo();
a.cal();
a.display();
}
17:38

#include<iostream>
using namespace std;
class Person
{
string nickname, description;
int age;
public:
void input()
{

cout<<"Enter nickname   :";
cin>>nickname;
fflush(stdin);
cout<<"Enter description:";
getline(cin, description);
cout<<"Enter age        :";
cin>>age;

}

void output()
{
cout<<"-----Output-------"<<endl;
cout<<nickname<<endl;
cout<<description<<endl;
cout<<age<<endl;
}
};

int main()
{   Person p[2];
for(int i=0;i<2;i++){p[i].input();
}

for(int i=0;i<2;i++)
{p[i].output();
}

system("pause");

}

# data[].attributes.body
#include<iostream>
using namespace std;
class Temp
{ private:
float f, c;

public:
void input()
{ cout<<"Enter Fahrenheit
temperature : ";
cin>>f;
c = Celsius(f);
}
float Celsius(float f)
{ return (f-32.0)/1.8;
}
void output()
{ cout<<"Celsius value is "<<c<<endl;
}
};

int main()
{ Temp t;

t.input();

t.output();
}

# data[].attributes.body
#include<iostream>
#include<iomanip>
using namespace std;

class temp
{
float f,c;
public:
void flo()
{
cout<<"Enter temperature in Fareheit : ";
cin>>f;
}
void cal()
{
c=(f-32)/1.8;

}
void display()
{
cout<<fixed<<setprecision(1)<<f<<"Fanrenheit is equal to "<<c<<"celsius";
}
};

int main()
{ temp a;
a.flo();
a.cal();
a.display();
}

# data[].attributes.headline
Post your answer for the question on Class Temp that i g

# data[].attributes.subject
Post your answer for the question on Class Temp that i g

# data[].attributes.body
..full question please refer to your friend.  If your answer has problems..pls state what problems ...if have no problem and can work, please state "Error Free".
thanks
Mdm Julie