Question: The dew point temperature Td can be calculated (approximately) from the relative humidity RH and the actual temperature T by: b. f(T, RH) af(T,RH) f(T,RH)
The dew point temperature Td can be calculated (approximately) from the relative humidity RH and the actual temperature T by: b. f(T, RH) af(T,RH) f(T,RH) where a= 17.27 and b=237.7" = b + T + ln( RH) Write a program that asks the user to enter the relative humidity (between 0 and 1) and the temperature (in degrees Celsius) Then compute and print the dew point value. Use the C++ function log to compute the natural logarithm. Your program should a) Use appropriate variable names, and meaningful comments to describe the algorithnm b) Use an appropriate message and a suitable format to display the result (see Figure 1) c) Display the floating-point numbers up to 3 decimal places d) Indent and comment your code e) Show your name and ID as additional comments at the beginning of your program Sample Output: Enter the relative humidity (between 0 and 1): 0.7 Enter the temperature (in degrees Celsius):31.5 The dew point temperature is 25.347 ress any key to continue . . . Figure 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
