Repeat the previous exercise using a case structure instead of a selection structure. Data From previous Exercise
Question:
Repeat the previous exercise using a case structure instead of a selection structure.
Data From previous Exercise
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.
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:
Step by Step Answer:
Guide To Java A Concise Introduction To Programming
ISBN: 978-3031228414
2nd Edition
Authors: James T. Streib, Takako Soma