- #1
cloudage
- 14
- 0
On a recent java exam we had a problem that asked to capitalize the first word in each sentence a user entered, and echo back the new string. The example that was given was this:
good morning. this is a good day. are you ready for the exam?
-------> Good morning. This is a good day. Are you ready for the exam?
I was running out of time and in my code it would only capitalize after a period, not after exclamation or question marks. However, in the example given there were only periods between each sentence, and the code I submitted works fine for these examples. The problem did NOT specifically state that we had to consider "!" and "?" as ends of sentences.
Anyway, I was given a score of 9/20 on this problem, 45%! I talked to my professor on Friday, and he bumped me up to 12/20 or 60%. He said the problem was that it wouldn't capitalize after "!" or "?". I feel like this is highly unfair (I got 99% on the rest of the exam). 60% is not even a passing grade, and the program works great for examples such as what was given on the exam.
So I just wanted some opinions on his grading policy for taking away initially 55% because the program doesn't work for exceptions. Is this common policy among the comp. science professors?
good morning. this is a good day. are you ready for the exam?
-------> Good morning. This is a good day. Are you ready for the exam?
I was running out of time and in my code it would only capitalize after a period, not after exclamation or question marks. However, in the example given there were only periods between each sentence, and the code I submitted works fine for these examples. The problem did NOT specifically state that we had to consider "!" and "?" as ends of sentences.
Anyway, I was given a score of 9/20 on this problem, 45%! I talked to my professor on Friday, and he bumped me up to 12/20 or 60%. He said the problem was that it wouldn't capitalize after "!" or "?". I feel like this is highly unfair (I got 99% on the rest of the exam). 60% is not even a passing grade, and the program works great for examples such as what was given on the exam.
So I just wanted some opinions on his grading policy for taking away initially 55% because the program doesn't work for exceptions. Is this common policy among the comp. science professors?