Question: A website requires that passwords do not contain whitespace. For each character in codeWord that is whitespace, replace the character with ' ! ' .
A website requires that passwords do not contain whitespace. For each character in codeWord that is whitespace, replace the character with
Ex: If the input is nF then the output is:
Adjusted password: nF
Note: isspace returns true if a character is whitespace, and false otherwise. Ex: isspace returns true. isspacea 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
