Problem

Write a C++ program to calculate the heat index (HI) using the formula: HI =0.5 * {T +...

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.

Step-by-Step Solution

Request Professional Solution

Request Solution!

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.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
Solutions For Problems in Chapter 3
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT