Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need help with step by step C++ program Write a C+ program to calculate the heat index (heatIndex) in degrees given the relative humidity in

Need help with step by step C++ program
image text in transcribed
Write a C+ program to calculate the heat index (heatIndex) in degrees given the relative humidity in percent and the temperature in degrees Fahrenheit up to two decimal point in precision. Your program should ask the user to enter the temperature (temp) and relative humidity (relHumidity). First heat index is computed from following formula: heatIndex=0.5[temp+61.0+(temp68)1.2+relHumidity0.094]; If the calculated heat index is above 80 degrees, your program should recalculate the heat index using following formula: heatIndex =42.379+[2.04901523 temp ]+[10.14333127 relHumidity ] [0.22475541*temp* relHumidity] - [0.00683783*temp*temp] - [0.05481717*relHumidity*relHumidity] +[0.00122874 temp*temp*relHumidity ]+[0.00085282 temp*relHumidity*relHumidity ] [0.00000199*temp*temp*relHumidity*relHumidity]; After computing heat index, your program should print the likelihood of a heat related health disorder given the value of the heat index. Visit www.nws.noaa.gov/om/heat/heat index.shtml for information. Test your program for following inputs. Run the program to print the results. Report your work, including your compiled program, and screen output results

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases On The Web Designing And Programming For Network Access

Authors: Patricia Ju

1st Edition

1558515100, 978-1558515109

More Books

Students also viewed these Databases questions

Question

2. Recognize core interpersonal skills for teamwork

Answered: 1 week ago

Question

To solve by the graphical methods 2x +3y = 9 9x - 8y = 10

Answered: 1 week ago

Question

Why does sin 2x + cos2x =1 ?

Answered: 1 week ago

Question

What are DNA and RNA and what is the difference between them?

Answered: 1 week ago

Question

Why do living creatures die? Can it be proved that they are reborn?

Answered: 1 week ago

Question

Are robots going to displace all workers? Explain your answer.

Answered: 1 week ago