A few notes from class

Aug 27, 2004 11:01

Today I go to PAX!  I also get a slurpee in Seattle!  I hope I make it there!

Here's some notes from class:

Math
x represents Kyle's current location, x-y represents the distance to the nearest 7-11, and t represents the time it will take for Kyle to go crazy at his current location (x-y = 50 miles).  Solve for t.

Computer Science
/////////////////////////////////////////////////////////
/// A main() function that tests whether or
/// not Kyle can get a slurpee
/// \pre    None
/// \post  None
/// \param  None
/// \return  The application's exit code as an integer.
/// \invariant  Kyle needs a slurpee
/////////////////////////////////////////////////////////
int main(void)
{
  if ( (miles)( kyle.location - seveneleven.location ) > 5 )
  {
      kyle.gocrazy();
  }
  else
  {
      kyle.get("slurpee");
  }
  return 0;
}

English
Kyle is unhappy
he needs to have a slurpee
or people will die
Previous post Next post
Up