Question: 1 . The temperature alone is not enough to provide the answer of how cold it is outside. In 2 0 0 1 , the
The temperature alone is not enough to provide the answer of how cold it is outside. In the National Weather Service NWS implemented the new windchill temperature to measure the coldness using temperature and wind speed. The formula is:
twc ta v tav
Where ta is the outside temperature measured in degrees Fahrenheit and v is the speed measured in miles per hour. Twc is the windchill temperature. The formula cannot be used for wind speeds below mph or temperature below oF or above oF
You may use Math.powa b to compute v
Write a java program that prompts the user to enter a temperature and a wind speed. You may use Scanner class or JOptionPane class for user input. The program displays the windchill temperature if the input is valid; otherwise, it displays a user friendly message indicating whether the temperature andor wind speed is invalid. Display your message in Window version using JOptionPane class.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
