Question: Read in a 3 - character string from input into variable userPassword. Declare a boolean variable noAlphas and set noAlphas to true if userPassword does
Read in a character string from input into variable userPassword. Declare a boolean variable noAlphas and set noAlphas to true if userPassword does not contain any alphabetic characters. Otherwise, set noAlphas to false.
Ex: If the input is then the output is:
Good password
Note: Use getlinecin userPassword to read the entire line from input into userPassword.
elsenoAlphas false;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
