Selection Ex 3 - Voting Age

Created By: M Ritter | Difficulty Level: 3

Description

Citizens can vote in an election if they are 18 or older and are registered to vote. An algorithm is required to prompt the user for their age. If they indicate they are at least 18, the algorithm prompts for their registration status. If registered, they are informed they can vote, otherwise they are prompted to register. Any users under 18 are informed they are too young to vote.

Puzzle

Drag from here

  • END
  • ELSE
  • INPUT age
  • IF registered == Y THEN
  • BEGIN
  • DISPLAY "You are too young to vote"
  • ELSE
  • IF age >= 18 THEN
  • ENDIF
  • ENDIF
  • DISPLAY "you can vote"
  • DISPLAY "You must register before you can vote"
  • INPUT registered

Construct your solution here