March 2019
Intermediate to advanced
208 pages
5h 11m
English
Write a program that calculates wind chill. Given an air temperature T in degrees Celsius and a wind velocity V in kilometers per hour, the formula is:
. Make sure you label your output properly. For example:
| | At temperature 5 degrees C and wind speed 20 km/hr, |
| | the wind chill temperature is 1.0669572525115663. |
You will need to explicitly bind the values for your temperature and wind speed variables, since we have not discussed how to get user input. That is in Chapter 4, Interacting with Web Pages. You can see a solution at code/first-project/src/WindChill.re.
Read now
Unlock full access