Please read the guide .
Please answer the question in detail
#include<iostream.h> class convert {private: float C,F; public: void getdata(); void cal(); void display(); }; void convert::getdata() { cout<<"Enter temperature in centigrade "; cin>>C; } void convert::cal() { F=1.8*C +32; } void convert::display() { cout<<"The temperature in Fahrenheit is : "<<F; } void main() { convert temperature; temperature.getdata(); temperature.cal(); temperature.display(); } Only for Turbo C++
Doubtly is an online community for engineering students, offering:
Get the pro version for free by logging in!
5.7k questions
5.1k answers
108 comments
561 users