Program exercise · Medium · ST · 10 min · Free

Rewrite the level alarms

Two ladder rungs compare Level with 80 and with 20. Rewrite them in the Text routine so High and Low match them at every level.

Opens the exercise in the FORGE workspace. Sign in to have your result checked and earn 120 XP.

How it is checked.

  • High is on only above 80
  • Low is on only below 20
  • Exactly 80 and exactly 20 leave both off

Part of Structured Text. All practice exercises.