Question 9:
(1 mark, file to be edited: Q9.c)
The program requires the user to enter a list of product names in a store. Each product name is separated by a space.
Continue entering the name of a product to search.
7 of 7
Paper No: 5
Count and print the number of products found in the store (the product name is not case-sensitive)Below are two examples of how the program will run:
Case 1: List of products = "Tom cuA ghe Oc Cua"; search = "CUA"
Tom cua ghe Oc Cua
CUA
OUTPUT:Product 'CUA' found 2 time(s)
Press any key to continue
Case 2: list of products = "Tom cuA ghe Oc Cua"; search = "ngao"
Tom cua ghe Oc Cua
100%
Zoom
Close