Question: Write a C++ program to read a sentence ending with a dot in a character vector. The sentence will contain numbers. Dont need to store

Write a C++ program to read a sentence ending with a dot in a character vector. The sentence will contain numbers. Dont need to store the dot in the vector. The program will print the sentence before hiding the digits. The program will replace all digits with X then prints the sentence again with digits hidden.

For example, if the user enters: My password is 1234 and I want to change it soon.

Your program will print the following

Your sentence before hiding digits: My password is 1234 and I want to change it soon

Your sentence after hiding digits: My password is XXXX and I want to change it soon

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!