1(a)(i)Data Types Variables Input OutputEasy1 mark
A program is being developed to control a simple alarm system to be used in a house. The alarm has a control panel with a keypad and a screen to display text.
The keypad consists of 36 character keys:
- 26 upper-case letter keys, allowing A to Z to be entered
- 10 digit keys, allowing 0 to 9 to be entered.
When the alarm system is initially installed, a password must be created. When the password is initially entered, it is checked to ensure that it follows a set of validation rules. It is then permanently stored in the alarm system.
For a password to be valid it must follow these validation rules:
- Rule 1: contain between six and eight characters inclusive.
- Rule 2: contain at least one letter and one digit.
- Rule 3: each character can only occur once.
The global variable Pass is used to store the password entered.
Complete the pseudocode to declare the variable to be used to hold the password.
DECLARE Pass : ____