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 3-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 ^0., then the output is:
Good password
Note: Use getline(cin, userPassword) to read the entire line from input into userPassword.
else{noAlphas = 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 Databases Questions!