Question: Lab 17 Count Letter Function CSCI 111 Programming and Algorithms 10 Points NEW CONCEPTS: . Continue practice in using the Makefile and calling a function.
Lab 17 Count Letter Function CSCI 111 Programming and Algorithms 10 Points NEW CONCEPTS: . Continue practice in using the Makefile and calling a function. Task list 1. Make sure you have a running example of Makefile as used in Lab 16. For example, the following 4 files from Lab 16 must compile ok: Makefile, ParseString.h, lab16.cpp, and ParseString.cpp 2. Your task is to create a CountLetter function (in its own file CountLetter.cpp) that is called from the main function. 3. The name of the function is CountLetter is defined as: int CountLetter(string sentence, char letter) 4. The Cou occurred within the sentence. The letters within sentence should be considered case-insensitive. In other words, the count should treat lower and upper case the same. 5. Refer to the expected output listing below 6. Submit your CountLetter.cpp file ntLetter function should return an in teger value representing the count of times the letter get a successful message. GRADING To achieve a maximum score, students will need to clearly prove that they completed the goal. .Points lost for incompleteness, sloppiness, lateness, or failure to follow instructions. . Refer to syllabus for late policy SAMPLE OUTPUT Enter a sentence If You're Gonna PLAY in Texas Enter a letter The letter a occurred 3 time (s
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
