Loop Ex 2 - Simple Login

Created By: M Ritter | Difficulty Level: 2

Description

A program is required for a login system. The system prompts the user for their password and checks the input against the stored password for that user (use 'xyz' for the purpose of this question). If the password entered is not correct, the message "Wrong Password, try again." is displayed and the user is prompted for their password again. If the correct password is entered, the message "Access Granted" is displayed.

Puzzle

Drag from here

  • OUTPUT "Wrong Password, try again."
  • WHILE password != storedPwd
  • SET storedPwd = 'xyz'
  • INPUT password
  • BEGIN
  • END
  • ENDWHILE
  • OUTPUT "Access Granted"
  • INPUT password

Construct your solution here