Question: Write a program for a meteorologist that calculates the wind chill factor and cloud base altitude for the inputs temperature in Fahrenheit, wind speed in

Write a program for a meteorologist that calculates the wind chill factor and cloud base altitude for the inputs temperature in Fahrenheit, wind speed in mph, and the dew point in Fahrenheit. Use a loop to enter a finite number of inputs for a given program run. You MUST use four (4) functions in the solution: 

One for getting input

One to compute and return the wind chill

One to compute and return the cloud base

One for the output

The output will be formatted exactly as shown below (use setw(x)) with the introduction as shown and notes as appropriate.

Use the cmath library for the power function (i.e. you need #include )

The equation for approximating the wind chill factor in North America is:

wc = 35.74 + 0.6215 * Ta - 35.75 * V0.16 + 0.4275 * Ta * V0.16

Where:

Ta is the air temperature in Fahrenheit

V is the wind speed in mph (use the pow(windSpeed,0.16))

Note: it's acceptable to use the different magic numbers within your program

Wind chill temperature is defined only at or below 10.0C (50.0 

F), and wind speeds above 4.8 kilometers per hour (3.0 mph). The program must check this and output asterisks when wind chill is invalid and output the message shown below. 
The cloud base in feet above ground level is determined by the "spread" which is the difference between the temperature and the dew point, and is calculated: cloudBase = temperature_spread / 4.4 * 1000; Cloud base should never be negative, if the value computed is below zero, assign it zero. 

See the Attached code samples for what your program should look like and for testing purposes.Write a program for a meteorologist that calculates the wind chill factorand cloud base altitude for the inputs temperature in Fahrenheit, wind speedin mph, and the dew point in Fahrenheit. Use a loop to

Output screen captures and test data I This program determines wind chill using temperatureI I in Fahrenheit and wind speed in mph, and computes I the cloud base using the dew point in Fahrenheit Enter the temperature in degroos Fahrenheit: 20 Enter the wind speed in mph: 15 Enter the deu point in degrees Fahrenheit: 5 Temperature ind Speed Dew Point ind Chill Cloud Base 20.0 dF 15.0 mph 5.0 dF 6.2 dF 3409.1 ft Output screen captures and test data I This program deternines wind chill using temperature I I in Fahrenheit and wind speed in nph, and computes I the cloud base using the dew point in Fahrenheit Enter the temperature in degrees Fahrenheit: 46 Enter the wind speed in ph Enter the dew point in degrees Fahrenheit: 37 Tenperature Wind Speed Dew Point Wind Chill Cloud Base 46.0 dF 7.0 mph 37.0 dF 42.4 dF 2045.5 ft

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!