Question: challenge activity 3 . 2 7 . 1 : Password requirements. 6 1 4 2 6 8 . 3 9 1 0 3 0 8

challenge activity
3.27.1: Password requirements.
614268.3910308.qx3zqy7
Jump to level 1
String password is read from input. For each character in password that is a letter, increment count by 1. Then, output "Valid" if count is no more than 5 and password's length is greater than 5. Otherwise, output "Invalid". End each output with a newline.
Click for examplesEx 1: If the input is TVx9NW, then the output is:
Valid
Ex 2: If the input is J9p48, then the output is:
Invalid
Note: isalpha() returns true if a character is a letter, and false otherwise. Ex: isalpha('a') returns true. isalpha('8') returns false.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!