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: (1) output the number of characters excluding the three characters commonly used for end-of-sentence punctuation( period, exclamation point, and question mark),(2) then output the number of end-of-sentence punctuation characters that were found. You can just do (1) to pass the first few test cases for partial credit, then do (2) for full credit.
Ex: If the input is "Listen, Sam! Calm down. Please.", the output is:
283
Ex: If the input is "What time is it? Time to get a watch! O.K., bye now.", the output is:
435
(because the periods in O.K. 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 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 Programming Questions!