Question: Part A Write a function windChillCalculator to determine the wind chill. Your main function should take in user inputs for T (air temperature) and V

 Part A Write a function windChillCalculator to determine the wind chill.

Part A

Write a function windChillCalculator to determine the wind chill. Your main function should take in user inputs for T (air temperature) and V (wind speed) and pass these values as parameters to your function. After your function calculates the wind chill it should return it to main. To test your code, for T = 30.0 and V = 5.0, you should get a Wind Chill of 24.7268. Within your main function, print the following cout statement: cout

Part B

Once you have the wind chill calculation working, create another function printWindChill. This function should call windChillCalculator and print all the wind chill values for a fixed temperature and variable wind speeds. You will need to write a loop in this function to iterate over the different wind speeds. The function should receive T (air temperature), low_wind_speed, high_wind_speed, and wind_speed_step as input parameters. For Example: Let the input parameters be T = 30.0, low_wind_speed = 5.0, high_wind_speed = 8.0, and wind_speed_step = 1.0, your function should print out the wind chill for a temperature of 30 F and wind speeds starting from 5 mph and ending at 8 mph, incrementing by 1 mph. (5 mph, 6 mph, 7 mph, and 8 mph) Use the following cout statement to output the values from within the function: cout Wind Chill (F) = 35.74 +0.621 5T-35.75(V0.16) + 0.4275T(V0.16) where,T= Air Temperature (v-wind Speed (mph) Effective 11/01/01

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!