--Originally published at Loading…
This was easy. Ken ask us to make a program…
“That will prompt the user for a temperature in Fahrenheit and then convert it to Celsius. Modify the program to state whether or not water would boil at the temperature given.”
As always the first thing that I did was to declare my variable. Then I put the cout instruction for show the question, and the cin for the user could write the temperature. After I write the formula for convert the Fahrenheit in to Celsius. And this was my code:
But it wasn’t as easy as it shows ‘cause I’m very distracted and I forget many things so it didn’t compiled very well
SECOND PART
After all the mess that I did, Ken told me to be a pro and make my program said the state of the water at that temperature… I know that I can make it with an if instruction, but I forgot how I can use 3 conditions in an if, so I searched in St. Google and I found a page that helped me to finish my program, and this is my final code: