Question: Repeat Exercise 15 in Chap. 3 to allow the user to enter temperatures for any number of cities using the best iteration structure. Data From

Repeat Exercise 15 in Chap. 3 to allow the user to enter temperatures for any number of cities using the best iteration structure.


Data From Exercise 15

The dew point temperature is a good indicator of how humid it feels during a hot day. The US National Weather Service (NWS) summarizes the human perception of humidity using the dew point temperatures shown in the table below.

Dew point temperature (F) 75 or higher 70-74 65-69 60-64 55-59 50-54

Write a complete program using a selection structure to output how a person feels for a given dew point temperature. The program should perform the following tasks:
a. Allow the user to enter a dew point temperature.
b. Determine the human perception for a given dew point temperature.
c. Output the corresponding phrase from the table.
Here is some sample input and output:

49 or lower Human perception Extremely uncomfortable Very humid Somewhat uncomfortable OK


Dew point temperature (F) 75 or higher 70-74 65-69 60-64 55-59 50-54 49 or lower Human perception Extremely uncomfortable Very humid Somewhat uncomfortable OK Comfortable Very comfortable A bit dry

Step by Step Solution

3.44 Rating (157 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Java code import javautilScanner public class DewPointTemperature public static ... View full answer

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 Introduction Java Program Questions!