Question: c + + Given a line of text as input: ( 1 ) output the number of characters excluding the three characters commonly used for
c Given a line of text as input: output the number of characters excluding the three characters commonly used for endofsentence punctuation period, exclamation point, and question mark then output the number of endofsentence punctuation characters that were found. You can just do to pass the first few test cases for partial credit, then do for full credit.
Ex: If the input is "Listen, Sam! Calm down. Please.", the output is:
Ex: If the input is "What time is it Time to get a watch! OK bye now.", the output is:
because the periods in OK are counted, even though they don't actually end a sentence
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
