Training - Password check
Write a program that meets the following requirements:
- User can enter a password (password is not visible, there are bullets or asterisks). After entering the password, user clicks a button.
- A panel indicates with 4 colors how strong the password is. If the password is strong then the panel is green, moderately strong then it is yellow, weak then the panel is red and very weak then the panel is black. a. Strong (green): there is a number 1, 2 or 3 in the password AND the password has a length greater than 3.
- Strong (green): there is a digit 1, 2 or 3 in the password AND the password has a length greater than 3.
- Weak (red): there is no digit 1, 2 or 3 in the password AND the password has a length greater than 3.
- Very weak (black): the length of the password is shorter than 3 characters.
- Medium (yellow): all other cases.