Question: in c++ programming language : Write the program that censors (word by word) the given text. Input There is given a list of forbidden words

in c++ programming language :

Write the program that censors (word by word) the given text.

Input There is given a list of forbidden words and a text to be censored, which is a sequence of words, newlines, and interpunctions signs (,.:;?!). Each word may consist of small and capital letters and each forbidden word is of length at least three. In the input, there is a non-empty list of forbidden words, each word in a separate line. Then after the list, there is an empty line, and then there is a text (in one line) to be censored.

Output Censored text. Each forbidden word in a text should be converted to the form of x****y, where x and y are the first and the last characters, respectively, and the number of stars is equal to the length of the word minus 2.

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 Programming Questions!