The wind chill index is a measure of the chilling effect of wind at a given temperature. In the following, we declare w, v, and t, and use these as follows:
double w; // wind chill index
double v; // wind speed in meters/sec
double t ; // temperature in degrees Celsius, t <= 10;
The wind chill index is measured as follows:
w = 0.045*(5.27*sqrt(v) + 10.45 – 0.28*v)*(t –33) + 33;
Write a program which uses a function to calculate the wind chill index for a particular temperature and wind speed. Ensure that your function checks whether the temperature given to it is valid.