Question: To secure sensitive information, we may need to change information such as phone numbers, social security numbers, or credit card numbers into the letter '

To secure sensitive information, we may need to change information such as phone numbers, social security numbers, or credit card numbers into the letter 'x'. In this program, you will look for stand alone numbers and convert them into x's. For example, if the user entered the following text:
My phone number is 2348890 and my pin is 831allen321.
The above would be changed to:
My phone number is xxxxxxx and my username is 831allen321.
Your solution to this program should 1) Ask the user for a sentence 2) convert the sentence so that stand alone numbers are changed into x's 3) Display the new text. Note that the 321 on the username was not converted. Allow the user to repeat the program.
c++

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!