--- title: "A Ladder Rung Problem" id: 80942 type: "computer_media" slug: "a-ladder-rung-problem" url: "http://localhost/computer_media/a-ladder-rung-problem/" markdown_url: "http://localhost/computer_media/a-ladder-rung-problem.md" published_at: "2026-11-26T21:58:25+00:00" modified_at: "2026-11-26T21:58:25+00:00" featured_image: url: "http://localhost/wp-content/uploads/2026/11/a-ladder-rung-problem-1.png" excerpt: "The firefighter on the ladder story problem, with an answer check, for the TS2068." post_tag: - name: "Downloadable" slug: "downloadable" taxonomy: "post_tag" url: "http://localhost/tag/downloadable/" model: - name: "Timex/Sinclair 2068" slug: "ts-2068" taxonomy: "model" url: "http://localhost/model/ts-2068/" indiv: - name: "Dick Wagner" slug: "dick-wagner" taxonomy: "indiv" url: "http://localhost/indiv/dick-wagner/" genre: - name: "Education" slug: "education" taxonomy: "genre" url: "http://localhost/type/education/" media_type: "Program" programmers: - name: "Dick Wagner" slug: "dick-wagner" taxonomy: "indiv" url: "http://localhost/indiv/dick-wagner/" download_url: "https://archive.org/download/timex-sinclair-software-archive/A%20Ladder%20Rung%20Problem%20%281994%29%28Wagner%2C%20Dick%29%28TS2068%29%28US%29%28Program%29.zip" tsrun_member: "A Ladder Rung Problem (1994)(Wagner, Dick)(TS2068)(US)(Program)/A Ladder Rung Problem (1994)(Wagner, Dick)(TS2068)(US)(Program).tap" mediadate: "1994" images: - url: "http://localhost/wp-content/uploads/2026/11/a-ladder-rung-problem-1.png" - url: "http://localhost/wp-content/uploads/2026/11/a-ladder-rung-problem-2.png" - url: "http://localhost/wp-content/uploads/2026/11/a-ladder-rung-problem-3.png" article_media: - id: 58882 title: "A Ladder Rung Problem" type: "article" url: "http://localhost/article/a-ladder-rung-problem-2/" media_type_tags: "Education" license: false --- # A Ladder Rung Problem A story problem for the screen: a firefighter on the middle rung of a ladder goes up three rungs, down five, up seven and then up the last six to the roof. How many rungs does the ladder have? Type your answer; a wrong one gets WRONG. TRY AGAIN., the right one RIGHT, THE ANSWER IS 23! NOW EXPLAIN YOUR REASONING. RUN 400 shows the author’s working: the rungs above the middle one, doubled, plus the middle rung. The problem came from a newspaper article about mathematics in Oregon schools. Published in The Plotter August 1994 ([A Ladder Rung Problem](https://timexsinclair.com/article/a-ladder-rung-problem-2/)). ## Source Code ``` 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 ```