Question: C + + A website requires that passwords only contain numbers. For each character in password that is not a number, replace the character with

C++ A website requires that passwords only contain numbers. For each character in password that is not a number, replace the character with '9'.
Ex: If the input is 35N862, then the output is:
Adjusted password: 359862
Note: isdigit() returns true if a character is a digit, and false otherwise. Ex: isdigit('8') returns true. isdigit('a') 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!