Tuesday, October 18, 2011

Dogs

The following conversation actually occurred during my class today.

Student 1:  A calculator is a man's best friend.
Student 2: I thought that a dog is a man's best friend.
Me: Ah, but since you can program a dog into your calculator, the calculator is really your best friend.

I then proceeded to enter aforementioned program into my calculator, which reads as follows (in calculator-language):
4->A
While(A>0)
Disp "Food?"
Pause
Disp "Play?"
Pause
End
For those who don't speak programming, this creates an infinite loop where the calculator dog asks you alternately for food and to play.  I thought it was pretty accurate.  I also am very happy that Kaylee is much more sophisticated than a dog:
She also sleeps where my feet go.  Bravo Kaylee.

 
 
 

No comments:

Post a Comment