[80pts]
Many organizations have password policies that try to encourage people to
choose good passwords. That means being able to check whether a given
password satisfies the policy requirements. Your job is a write a program
that reads in a password and determines whether it meets the following
requirements:
A password must contain at least two upper case letters, at least two
lower case letters, at least two digits and at least two "other" symbols,
i.e. ones that don't fit the other categories.
You may assume that passwords never contain the character \, and so the
password the user enters will end with a \, which is not part of the
password, but which indicates the end of the password.
Here are some sample runs:
~/$ ./checker
Hal23Tate$%\
pass
~/$ ./checker
Half23$$\
fail