Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Meteorologist use the following formula to compute the wind chill factor, W: W =

ID: 3551869 • Letter: M

Question

Meteorologist use the following formula to compute the wind chill factor, W:


W = 35.75 + 0.6215 * T - 35.75 * V 0.16 + 0.4275 * T * V 0.16


Where V is the wind speed in miles per hour and T is the temperature in Fahrenheit. Write a program that prompts the user to input the wind speed, in miles per hour and the temperature in degrees Fahrenheit. The program then outputs the wind chill factor. Your program must contain at least two functions: one to get the user input and the other to determine the wind chill factor.

Explanation / Answer

#include<iostream>

using namespace std;

void input1(double *speed,double *temp)

{


cout<<endl<<"enter the wind speed in miles per hour : ";

cin>> *speed;

cout<<endl<<"enter temperature in F " ;

cin>> *temp;

}


double chillfactor(double V,double T)

{


double factor;

factor=35.75 + 0.6215 * T - 35.75 * V *0.16 + 0.4275 * T * V *0.16;

return factor;

}


int main()

{


double speed,temp;

input1(&speed,&temp);

double factor;

factor=chillfactor(speed,temp);

cout<<endl<<"the chillfactor is "<<factor;

}