Question: Using C++ and functions: Write a program that reads in a line of text and outputs the line with all the digits in all integer
Using C++ and functions:
Write a program that reads in a line of text and outputs the line with all the digits in all integer numbers replaced with 'x'. Please enter a line of text: My userID is john17 and my 4 digit pin is 1234 which is secret My userID is john17 and my x digit pin is xxxx which is secret Notes:
If a digit is part of a word, then the digit is not changed to an 'x'. For example, john17 is NOT changed to johnxx.
You may assume that the text entered by the user will contain only letters (upper case or lower case), digits and spaces.
Think how to break down your implementation to functions.
Step by Step Solution
3.44 Rating (167 Votes )
There are 3 Steps involved in it
To write a C program that replaces all digits in standalone integers with x while keeping digits within words unchanged you can approach the problem b... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (2 attachments)
609321b4cf735_23435.pdf
180 KBs PDF File
609321b4cf735_23435.docx
120 KBs Word File
