How’s the weather

Picture by Gratisography Gratisography

Welcome to WSQ02: this is an easy one.

Captura de pantalla 2017-01-31 a la(s) 13.49.09.png

As you can see in my code, what you only need is the actual formula (which is given in ken’s post). The difficult parte here may be that we need to tell the user the state of water in this temperature, it’s actually very easy, if you have no idea of how to use if functions you may want to check chapter 4 of our book. The only thing to do here is obvious, if the temperature in Celsius is lower than 0, then water is solid, if its higher that 0 but lower than 100, its liquid and if its higher than 100 its gas.

This is what the program should look like:

Captura de pantalla 2017-01-31 a la(s) 13.53.28.png

As always my code at GitHub.

Have any questions? feel free to ask.

L.out

Deja un comentario