Write a C++ program to calculate the heat index (HI) using the formula:
HI =0.5 * {T + 61.0 + [(T-68.0)*1.2] + (RH*0.094)}, where RH is the relative humidity in percent and T is the temperature in degrees Fahrenheit. Your program should prompt the user for the temperature and relative humidity, and print the heat index. If the calculated heat index is above 80 degrees, your program should recalculate the heat index using the following formula:
HI = −42.379 + 2.04901523 ∗ T + 10.14333127 ∗ RH − .22475541 ∗ T ∗ RH
−.00683783 ∗ T ∗ T − .05481717 ∗ RH ∗ RH + .00122874 ∗ T ∗ T ∗ RH
+.00085282 ∗ T ∗ RH ∗ RH − .00000199 ∗ T ∗ T ∗ RH ∗ RH
and print the second result.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.