Question: Lab 18 Count Letter Function CSCI 111 Programming and Algorithms I Due Tuesday March 23, 11:59pm on furnin 10 Points NEW CONCEPTS: Continue practice in

 Lab 18 Count Letter Function CSCI 111 Programming and Algorithms I

Lab 18 Count Letter Function CSCI 111 Programming and Algorithms I Due Tuesday March 23, 11:59pm on furnin 10 Points NEW CONCEPTS: Continue practice in using the Makefile and calling a function. Task list: 1. Make sure you have a compiled example of Makefile as used in Lab 17. My suggestion is to copy the following 4 files from Lab 17. Makefile, ParseString.h, lab17.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. In the header file, define the Countl.etter function as: int CountLetter(string sentence, char letter: 4. The CountLetter function should return an integet value representing the count of times the letter 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 on http://tumin.cest cuchico.edu/ and get a successful message. SAMPLE OUTPUT Text in red color should be displayed from the main function Sraigozalece-linux:-/oscil11/1ab185 ./lab18 Enter a sentence. It You're Gonna PLAY in Texan... Entertatter The Letter occurred 3 time(s). Sraigozalece-linux:-/cecil11/lab18$ ./lab18 Enter sentence. Looking forward to Christmas already. roigonace-linux-oneill1/labies ./1ab18 Taigorateco-linux-lecill1/habis

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!