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.4275t - 35.75) * v0.16 Write a program in c language to receive values of temperature and v and calculate wcf
Answers
Answered by
1
Answer:
We will be taking a float variable and calculate the wind chill factor with the provided provisional formula. Code given below
Explanation:
#incude<stdio.h>
void main()
{
float t,v,wcf=0.0; // as float value it has to be initiated as 0.0
printf ("enter the temperature in celcius");
scanf ("%f ",&t) ;
// scanf is a pre defined function taking two default parameters as format specifier and variable
printf ("enter the v value ");
scanf ("%f ",&v) ;
//According to given formula we will calculate mathematically using c
wcf= 35.74 +0.6215*t + (0.4275*t - 35.75) * v*0.16
printf("%f",&wcf);
}
In advance gcc compilers we don't need conio.h to inculcate predefined function like crlscr() and getch()
Similar questions
English,
6 months ago
Math,
6 months ago
Computer Science,
6 months ago
Chemistry,
11 months ago
Psychology,
11 months ago
Biology,
1 year ago
Biology,
1 year ago