A Ladder Rung Problem

Author(s): Dick Wagner
Publication: The Plotter
Pub Details: The Plotter v12 n8 (Volume 12, Issue 8)
Date: August 1994
Pages: 5-6

This little problem about the number of rungs in a ladder was presented in our local newspaper in an article about The Problem With Math in Oregon Schools. It seemed like a nice problem for an adult to present to a student of almost any age, if State educators are correct in expecting a 3rd year student would be able to solve it. A computer is not a necessary tool in arriving at a solution, it is just convenient to present the problem as a computer program. The solution I came up with is given by keying in RUN 400.

   1 REM
10 REM DICK WAGNER 7/27/94
100 PRINT "STORY PROBLEM"
200 PRINT "A firefighter stood on the mid- dle rung of a ladder pouring water on a burning building. As the smoke cleared, he stepped upthree rungs."
205 PRINT
210 PRINT "But a sudden flair-up forced himdown five rungs. Later he climbed seven rungs where he worked until the fire was out."
215 PRINT
220 PRINT "Then he climbed the remaining six rungs to the top of the ladder and stood on the roof."
225 PRINT : PRINT "Give your answer as 2 digits."
230 PRINT "How many rungs did the lad- der have?"
310 INPUT R
315 PRINT : PRINT R: PRINT
320 IF R <23 OR R>23 THEN PRINT "WRONG. TRY AGAIN.": GO TO 225
330 IF R=23 THEN PRINT "RIGHT, THE ANSWER IS 23! NOW EXPLAIN YOUR REASONING."
380 STOP
390 REM RUN 400 TO CALCULATE THE ANSWER
400 REM B IS THE CENTER RUNG
410 LET B=0
420 LET C=B+3: REM UP 3 RUNGS
430 LET D=C-5: REM DOWN 5 RUNGS
440 LET E=D+7: REM UP 7 RUNGS
450 LET F=E+6: REM UP 6 RUNGS
460 LET R=F*2+1: REM SUM OF RUNGS ABOVE MIDDLE RUNG X 2 + MIDDLE RUNG
470 PRINT R

Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.