Posted by: the author | March 2, 2011

Washington State Winter

Weather weather = new Weather();

weather.State = State.Washington;
weather.Type = new Random(PrecipitationType);
weather.Temperature = new Random( 5, 50 );
weather.Season = Season.Winter;

while (weather.Temperature >= 33.4 && weather.Temperature <= 33.6)
{
    weather.PrecipitationType = Precipitation.Snow;
    Snow();
}

while (weather.PrecipitationType != Precipitation.Snow)
{
    if (weather.Temperature <= 33.3)
    {
        FreezeAllRoads();
        LowerDrivingSkillIQOfWashintonDrivers(-100);
        ReleaseAllPsychoticDriversWith4X4VehiclesOntoRoads&();
        PlaceRandomCarsInDitches();
        CauseDriversToAbandonCarsInTheMiddleOfTheRoad();
    }
    else
    {
        MeltSnow();
        CauseEveryoneToActNormal();
        Rain();
        BlowStrongWind();
        weather.Type = new Random(PrecipitationType);
    }
}

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: