Answer to Question #259047 in Python for Sam

Question #259047

The dew point temperature Td can be calculated (approximately)from the relative humidity RH and the actual temperature T by


Td=bf(T, RH)/a.f(T, RH)



F(T, RH) =a.T/b+T + In(RH)



where a = 17.27 and b= 237.76



write a WAP that reads the relative humidity (bio 0 and 1) and the temperature ( in degrees C) and prints the dew point value..

1
Expert's answer
2021-10-30T13:32:05-0400
from math import log

t = float(input('Enter temperature in C:'))
rh = float(input('Enter relative humidity (0-1):'))
f = 17.27 * t / (237.7 + t) + log(rh)
print(round(237.7 * f / (17.27 - f), 1), 'C', sep='')

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog