Question: C + + A website requires that passwords only contain alphabetic characters. For each character in codeStr that is not an alphabetic character, replace the
C A website requires that passwords only contain alphabetic characters. For each character in codeStr that is not an alphabetic character, replace the character with x
Ex: If the input is s@C$w then the output is:
Adjusted password: sxCxw
Note: isalpha returns true if a character is alphabetic, and false otherwise. Ex: isalphaa returns true. isalpha returns 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
