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 8nF !, then the output is:
Adjusted password: 8nF!!!
Note: isspace() returns true if a character is whitespace, and false otherwise. Ex: isspace('') returns true. isspace('a') returns 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 Programming Questions!