Write a C++ program for the instructions below. Please read the instructions carefully and make sure they are followed correctly. Please put comments with code! And please do not just copy other solutions.
Problem 2: Total Characters in String Array (10 points)
Declare a string array of size 5. Prompt the user to enter five strings that are stored in the array. Afterwards, prompt the user to enter a character. Write a function that expects the following three parameters: an array, the size of the array, and a char. The function counts the number of occurrences of that char in all of the strings stored in the array and returns it. Call that function from the main and output the returned value.
Example:
Enter five items.
Item 1: hello
Item 2: c++
Item 3: Wednesday
Item 4: It's a great day
Item 5: goodbye
Target: e
The char 'e' was found 5 times.
Note: Don't forget to include <string>. You may only use the .length() function on a string variable to get the number of characters in a string, e.g. str.length(). Use array syntax on a string variable to access any char by index, e.g.: assuming a string variable named str that stores "hello", str[1] would return 'e'.