Question: Create a project named HeatIndex, and create a program that asks the user for the current temperature and relative humidity and then calculates the Heat

Create a project named HeatIndex, and create a program that asks the user for the current temperature and relative humidity and then calculates the Heat Index given these values.

You can read more on Heat Index calculations here (https://www.wpc.ncep.noaa.gov/html/heatindex_equation.shtmlLinks to an external site. (Links to an external site.))

For this program, you will calculate only for temperatures 80 and below, and can therefore use the following formula (note: the format of the following formula was taken directly from the link about. You will need to translate this into an arithmetic expression that Java understands; and also, demonstrate your knowledge of PEMDAS by eliminating any unnecessary parentheses):

HeatIndex = 0.5 * {Temp + 61.0 + [(Temp-68.0)*1.2] + (Humidity*0.094)}

Be sure to create a user-friendly program that displays output that tells the user what the program is, properly prompts the user so that the user knows what to enter, and displays the result in an informative way (for instance, rather than simply displaying an output number, include a few words describing it -- The heat index is 78 degrees Fahrenheit.

Submit the java file for this program.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!