An electrical, a mechanical and a computer engineer are sitting in a car that does not want to start and they argue on what to do. The electrical engineer suggests that they clean the battery terminals and the mechanical engineer wants to check the spark plugs. Then the computer engineer suggests that they should all get out of the car, get back in and try to start the car again!
My son and I have been playing with infinite series, using imaginary cookies in a cut-it-in-half and share-it-out exercise. So if, say, you have two cookies and share them with three people, you cut the two cookies in half, give one half to each person, and have a half left over. Then you cut the half-cookie in half and have two half-half-cookies, which isn't enough to share, so you cut the half-halfs in half, and so on ad infinitum. It makes a pattern, and the pattern varies according to the number of cookies you start off with and how many people want a share. Of course, your cookies end up kinda disintegrated. Or is that differentiated...
The page we were working on had a basic program to illustrate the pattern formation. It looked like this...
20 INPUT T
30 INPUT B
40 PRINT INT(T/B);
50 n = T - B*INT(T/B)
60 n = n*2
70 c = c + 1
80 IF c>10 THEN STOP
90 IF n>B THEN GOTO 110
100 n<=B THEN GOTO 150
110 x = 1
120 PRINT x;
130 n = n - B
140 GOTO 60
150 x = 0
160 PRINT x;
170 GOTO 60
I'm a bit allergic to code, so I got him to talk me through it.
"What does that T and B stand for?" I asked, innocently.
"Total Biscuit!" He answered, without a moment's hesitation.
Location: Currently in Lake Stevens, WA. Home in Spokane
posted 5 years ago
I answer the question "The glass is full. Half full of liquid, half full of air."
Location: Missoula Mt
posted 5 years ago
A new monk shows up at a monastery where the monks spend their time making copies of ancient books. The new monk goes to the basement of the monastery saying he wants to make copies of the originals rather than of others' copies so as to avoid duplicating errors they might have made. Several hours later the monks, wondering where their new friend is, find him crying in the basement. They ask him what is wrong and he says "the word is CELEBRATE, not CELIBATE!"
If no one from the future comes to stop you is it really that bad of a decision?