CompuServe Messages

#sasc

    17-Nov-92 22:34:38
Sb: #sasc
Fm: Bruce Sanderson 76516,2072
To: eldon de hart 73030,1457
Eldon I used your code and changed it some. I don't know what some of the other formulas you were using were so I just stuck with the wind chill factor formula. I also changed double to float because it was giving me some weird answers and float seemed to give a result which sounded like what I remember wind chill used to sound like.(I used to live in western New York btwn Buffalo and Rochester)-bruce /*windchill.c— formula for wind chill factor is based on a formula on pg.77 of "1001 things to do with your Amiga"by Sawusch &Prochnow by TAB books. H=(.14+.47*V)(36.5-T) where H= chill in calories lost per square centimeter, V=wind velocity(miles per second), and T= temperature(Centigrade).Compiler options used are math=regular (library used) and link. I do not know if the formulas are right, but it does compile in vers.6 SAS; also I could be way off base because I am just learning how to program. */ #include <stdio.h> #include <math.h> void main() { float t,v,h,tc; printf("This will Calculate Wind Chill Factor.\n"); printf("Enter Current Temperature in Degrees F.\n"); scanf("%f",&t); printf("Enter Current Wind Speed in M.P.H.\n"); scanf("%f",&v); v=v/3600;/*to derive miles per second i.e. 3600 secs/hr.*/ tc=((t-32.0)*5)/9;/*changes Farenheit to Centigrade*/ h=(.14+(.47*v))*(36.5-tc);/*wind chill factor formula */ printf("The Wind Chill Factor is %f \n",h); }