Question: 2 2 . 1 2 LAB: Contains the character ( Arrays ) DO IT IN C + + PLEASE Write a program that reads an

22.12 LAB: Contains the character (Arrays) DO IT IN C++ PLEASE
Write a program that reads an integer, a list of words, and a character. The integer signifies how many words are in the list. The output of
the program is every word in the list that contains the character at least once. For coding simplicity, follow each output word by a comma,
even the last one. Add a newline to the end of the last output. Assume the list contains at most 20 words, and at least one word in the list
will contain the given character.
Ex: If the input is:
4
hello zoo sleep drizzle
z
then the output is:
zoo,drizzle,
To achieve the above, first read the list into an array. Keep in mind that the character 'a' is not equal to the character 'A'.
537614.4094172.qx3zqy7
LAB
ACTIVITY
22.12.1: LAB: Contains the character (Arrays)
010
main.cpp
Load default template...
#include
 22.12 LAB: Contains the character (Arrays) DO IT IN C++ PLEASE

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!