Hello! I am making a project for Programming 1. I need to count sentences, they need to start with a capital letter and finish with a dot. My code works if a write this "This is a Test.", because the last word starts with a capital T. But with "This is a test." It will count zero.
I dont realize what to do, how to differenciate the first letter of the sentence with the first letter of the last word of the sentence.
Sorry for my english! Booleans and print are in spanish :D
Yeah, but it has to start with a capital letter and end with a dot to be a sentence in this case, and the professor its only going to check for dots, no other punctuation!
Find next capital letter. Find next dot. Increment a counter.
Find next capital letter. Find next dot. Increment a counter.
...
Keep going until the end of the string.
It has any flaws? I think its fine for Programming 1, of course if I put My name is Maximiliano..its going to count as 2 sentences.
Any way I can prevent that?