Wind Chill Factor is the felt air temperature on exposed skin due to wind. The wind chill temperature is always lower than the air temperature, and is calculated as per the following formula:
wcf = 35.74 + 0.6215t + (0.4275-35.75)*v^0.16
where t is the temperature and v is the wind velocity . Write a program to receive value of t and v and calculate wind chill factor(wcf).
C Program : Solution
#include <stdio.h>
int main()
{
float temp,velocity,wcf;
printf(“Enter the temperature(C) and velocity(m/s) of wind:”);
scanf(“%f%f”,&temp,&velocity);
wcf = 35.74 + 0.6215*temp+(0.4275*temp-35.75)*pow(velocity,0.16);
printf(“The wind chill factor is:%0.2f”,wcf);
return 0;
}
