Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Problem: Given the temperature T of the air and the wind speed v , calculate the wind chill T w c : the temperature felt
Problem: Given the temperature of the air and the wind speed calculate the wind chill : the temperature felt by
humans and animals in a cold wind.
Temperatures and the wind speed are double precision.
The coefficients and exponent are required to be defined constants.
One mile is defined as kilometers. This is also a required defined constant.
The user can choose to enter either US customary units degrees Fahrenheit and miles per hour or SI units
degrees Celsius and kilometers per hour The program always displays the inputs in US units.
The equation above requires to be in degrees Fahrenheit and to be in miles per hour. The result is the US
wind chill in degrees Fahrenheit. Convert the US wind chill to degrees Celsius for the SI wind chill.
Use in your print format strings to display the degree symbol
Use the flag for the temperature and wind chill placeholders in your print format strings to force a plus sign
to be displayed for positive numbers. See p of the Forouzan & Gilberg textbook.
This assignment requires the implementation of the selection by calculation technique. See p of the
course notes packet.
Example Execution #: Recent local weather
Enter for US units, for SI
Enter temperature
Enter wind speed mph
Example Execution #: Example # in SI units
Enter for US units, for SI
Enter temperature
Enter wind speed kph
Example Execution #: Mount Washington,
Enter for US units, for SI
Enter temperature
Enter wind speed mph
Temperature:
Wind speed:
US wind chill:
SI wind chill:
Example Execution #: Projected local weather
Enter for US units, for SI
Enter temperature
Enter wind speed mph
Temperature:
Wind speed:
US wind chill:
SI wind chill:
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started