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

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!