Question: 2 2 . 1 2 LAB: Contains the character ( Arrays ) DO IT IN C + + PLEASE Write a program that reads an
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 words, and at least one word in the list
will contain the given character.
Ex: If the input is:
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 is not equal to the character
qxzqy
LAB
ACTIVITY
: LAB: Contains the character Arrays
main.cpp
Load default template...
#include
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
