Question: So, right now in my computer science class(a beginners class), we are focusing on an assignment called Letter Replacement. Basically, the purpose of the assignment
So, right now in my computer science class(a beginners class), we are focusing on an assignment called Letter Replacement. Basically, the purpose of the assignment is to enable us to build a better understanding on how to use a string builder class. However, the assignment requires that we have our program read in a word and then replace every other letter with an asterisk(Ex:*). My question is how can you replace letters in a string, specifically with an asterisk? I would appreciate a good explanation as I am very much a beginner and struggle with Computer Science. Thank you!
The computer language is in C++
An example of Input and Output is:
Enter a word: Sing
Output:
Alternate word: S*n*g
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
