Write a method named isValidPassword that takes a string as input parameter, and returns true if that string represents
a valid password, or false otherwise. A password is considered valid if (and only if) its length is between 6 and 8
characters (inclusive), and all of the requirements below are satisfied. You must use regular expressions to check if
the following conditions are met:
• The password starts either with an upper case letter or with one of the following special characters: ! @ #
• The password’s first character is followed by at least 5, and at most 7, word characters (i.e., letters, digits,
or underscore)
• The password’s last character is not equal to any of the following special characters: * . %
• The password does not contain any whitespace characters
What Students Are Saying About Us
.......... Customer ID: 12*** | Rating: ⭐⭐⭐⭐⭐"Honestly, I was afraid to send my paper to you, but splendidwritings.com proved they are a trustworthy service. My essay was done in less than a day, and I received a brilliant piece. I didn’t even believe it was my essay at first 🙂 Great job, thank you!"
.......... Customer ID: 14***| Rating: ⭐⭐⭐⭐⭐
"The company has some nice prices and good content. I ordered a term paper here and got a very good one. I'll keep ordering from this website."