5.21 LAB: Contains the character 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. Assume at least one word in the list will contain the given character. Assume that the list will always contain less than 20 words. Each word will always contain less than 10 characters and no spaces. 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'. Hint: To read in the character after the final word, add a space before %c: scanf (" %c", &searchCharacter);
+3
Answers (1)
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “5.21 LAB: Contains the character Write a program that reads an integer, a list of words, and a character. The integer signifies how many ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Home » Computers & Technology » 5.21 LAB: Contains the character Write a program that reads an integer, a list of words, and a character. The integer signifies how many words are in the list.