Hi Heather:
You need either vc 2005 or vc 2008 to run the wind chill program.
and I suspect you can not find a reliable down load site for
vc 2005. I think vc 2008 is close to 400 mB.
It will be very difficult or impossible to do with your 2003 C compiler.
Try out Borland it's abcient and old but it does go.
My original Borland wind chill program for c.
/* WIND.CPP 11/20/2003 10:30
Author: herge
Location: Waterloo, Ontario, CANADA
WWW.nws.NOAA.gov
Wind Chill = 35.74 + 0.6215 * T - 35.75(V**0.16) +
0.4275 * T(V**0.16)
Where T = Degrees F and V = mph */
#include <iostream.h>
#include <iomanip.h>
#include <algorithm.h>
#include <math.h>
#include <conio.h>
using std::cout;
using std::endl;
using std::setw;
int main()
{
int i = 0; /* t index(f)*/
int j = 0; /* v index(m)*/
const int k = 248; /* Degree Symbol */
int w = 0; /* Temperature Degrees F */
double v6 = 0; /* Miles ** 0.16*/
double c = 40; /* initial t(F) */
int d = 5; /* initial v (mph) */
// double f = 0.6214015; /* 1km = as mil
// es */
// double f = 1.6092655 /* 1mi = as km *
// /
double f = 1;
cout << "MPH\tWind Chill Factor (Temperature +40F to -40F)" << endl;
cout << " V ";
for ( i = 0 ; i < 17; i ++)
cout << setw(3) << ( 40 - ( i * 5 )) << " " ;
cout << char(k) << "F" << endl;
for ( i = 1; i < 13; i++ )
{ /* Velocity */
d = i * 5.0 * f;
cout << setw(3) << d << " ";
/* MPH to power of (0.16) */
/* for wind chill formula */
/* calculate in outer loop*/
v6 = pow(d, 0.16);
for ( j = 0; j < 17; j++)
{ /* Temperature */
c = 40 - (j * 5);
w = 35.74 + 0.6215 * c - 35.75 * v6 +
0.4275 * c * v6;
cout << setw(3) << w << " ";
if( j == 16) cout << char(k) << "F";
}
cout << endl;
}
cout << "MPH" << endl;
getch();
}
/*
C:\borland\bcc55\bin>pause
Press any key to continue . . .
C:\borland\bcc55\bin>wind
MPH Wind Chill Factor (Temperature +40F to -40F)
V 40 35 30 25 20 15 10 5 0 -5 -10 -15 -20 -25 -30 -35 -40 °F
5 36 30 24 18 12 7 1 -4 -10 -16 -22 -28 -34 -39 -45 -51 -57 °F
10 33 27 21 15 8 2 -3 -9 -15 -22 -28 -34 -40 -46 -53 -59 -65 °F
15 31 25 19 12 6 0 -6 -12 -19 -25 -32 -38 -45 -51 -57 -64 -70 °F
20 30 23 17 10 4 -2 -8 -15 -21 -28 -35 -41 -48 -54 -61 -67 -74 °F
25 29 22 16 9 2 -4 -10 -17 -24 -30 -37 -44 -50 -57 -64 -70 -77 °F
30 28 21 14 8 1 -5 -12 -19 -25 -32 -39 -46 -53 -59 -66 -73 -80 °F
35 27 20 13 7 0 -6 -13 -20 -27 -34 -41 -48 -54 -61 -68 -75 -82 °F
40 26 19 13 6 0 -7 -14 -21 -28 -35 -42 -49 -56 -63 -70 -77 -84 °F
45 26 19 12 5 -1 -8 -15 -22 -29 -37 -44 -51 -58 -65 -72 -79 -86 °F
50 25 18 11 4 -2 -9 -16 -24 -31 -38 -45 -52 -59 -66 -73 -80 -87 °F
55 25 18 10 3 -3 -10 -17 -24 -32 -39 -46 -53 -60 -67 -75 -82 -89 °F
60 24 17 10 3 -4 -11 -18 -25 -33 -40 -47 -54 -61 -69 -76 -83 -90 °F
MPH
Last Line c:\borland\bcc55\bin\wind.cpp
*/
Regards herge