Question: 6 0 1 2 7 0 . 4 1 2 0 1 1 4 . q 3 z q y 7 Jump to level 1

601270.4120114.q3zqy7
Jump to level 1
String codeWord is read from input. For each character in codeWord that is a letter, increment count by 1. Then, output "Valid" if
count is at least 3 and codeWord's length is greater than 7. Otherwise, output "Invalid". End each output with a newline.
Click for examples
Ex 1: If the input is 39 S 0 vF 46, then the output is:
Valid
Ex 2: If the input is 7 WBPS 49, 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.
#include
6 0 1 2 7 0 . 4 1 2 0 1 1 4 . q 3 z q y 7 Jump to

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!