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
Get step-by-step solutions from verified subject matter experts
