Hello everybody


I have a lot of trouble doping this homework, if you can help me it would be 
great:
 

Design a program that converts Celsius temperatures to Fahrenheit temperatures. 
The formula is as follows:
F= (9/5) C + 32
 
The user will be ask to enter he degrees and he/she will see it the result at 
the end.
 
This is what I did:
 
/*Conversion Program*/
#include <iostream>
#include <string>
using namespace std;
int main()
{
double ftemp;
double ctemp;
cout<<"-Converting Fahrenheit to Celsius-"<<endl;
cout<<"Enter temperature in Fahrenheit to convert to Celcius: ";
cin>>ftemp;
ctemp=(ftemp-32)*5/9;
cout<<"The temperature in Celsius is: "<<ctemp<<endl;
return (0);

 
 
 
 
 


      

[Non-text portions of this message have been removed]

Reply via email to