--Originally published at PZ
To do this work I have readed part of the book and reviewed the week 01 work to do this, because they booth use operations so it was much more easier to do this. I also had to review the cin and cout to take the information, when I completed that I had this part of the code:
#include <iostream>
#include <stdlib.h>
using namespace std;
int main(){
int f,c=0;
cout<<” ingrese temperatura en Fahrenheit:”<<endl;
cin>>f;
c=5*(f-32)/9;
cout<<“La temperatura en Celsius es:”<<c<<” Celsius.”<<endl;
return 0;
}
But that was just one part because I had to program it to say if it is boiling or not so I searched for the If and Else in this page https://www.tutorialspoint.com/cplusplus/cpp_if_else_statement.htm.
And then I completed this code:
#include <iostream>#include <iostream>#include <stdlib.h> using namespace std;
int main(){
int f,c=0;
cout<<” ingrese temperatura en Fahrenheit:”<<endl;
cin>>f;
c=5*(f-32)/9;
cout<<“La temperatura en Celsius es:”<<c<<” Celsius.”<<endl; if(c>=100) cout<<“La temperatura evapora a este punto.”<<endl;else cout<<“La temperatura no evapora a este punto.”<<endl;
return 0;
}
Links
Turorials Piont, If and else;
https://www.tutorialspoint.com/cplusplus/cpp_if_else_statement.htm.