luc007.c (743B)
1 /* Wind-chill factor is the felt air temperature on exposed skin due to wind. 2 The wind-chill temperature is always lower than the air temperature, and is 3 calculated as per the following formula. 4 wcf = 35.74 + 0.6215t + (0.4275t - 35.75) * v^0.16 5 Where t is temperature and v is wind velocity. Write a program to receive 6 values of t and v and calcualate wind-chill factor (wcf). */ 7 /* Let Us C, Chap - 2, Page - 37, Qn No.: G(d) */ 8 9 #include <stdio.h> 10 #include <math.h> 11 int main() 12 { 13 double t, v, wcf; 14 printf("Enter the temperature and velociy of the wind : "); 15 scanf("%lf %lf", &t, &v); 16 wcf = 35.74 + (0.6215 * t) + (((0.4275 * t) - 35.75) * pow(v, 0.16)); 17 printf("\nWind-chill factor (wcf) : %g", wcf); 18 return 0; 19 }