Name: ____________________________________________________ Alpha: _____________________

Describe help received: _________________________________________________________________

  1. [100pts] 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: it 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
Turn in a printout of this cover sheet with your source code, and a screen capture of your program running on the passwords fo$t3Rt@t3R and Cr@8sT@steGre@t