March 2019
Intermediate to advanced
208 pages
5h 11m
English
Consider a two-tuple of data that gives temperature in degrees Celsius and relative humidity as a percent. Write a program that takes a list (or array—whichever you prefer) of these tuples and calculates:
The dew point for each tuple, using the formula
This formula is the simplest one available; it is fairly accurate for relative humidity over 50%. There are more accurate formulas—if you want to research them and implement one of those instead, be my guest.
The maximum, minimum, and average dew points
Hint: You can use the built-in min and max functions, which return the lesser and greater of their two arguments, or you can use ...
Read now
Unlock full access