Assume that a student is typing his/her final report for English class into a
text file "report.txt". After completing the report, the student realizes that
he/she mistakenly had the Caps Lock key on throughout the typing process. All
the Latin characters in the report are, therefore, in uppercase. Since the
report is very (very) lengthy, the student has decided to write a C program
that would make the report better by converting all the Latin uppercase letters
to lowercase letters. Since this is a report for English class, the program must
also ensure that each sentence starts with an uppercase letter, but otherwise,
the file contains only lowercase letters. The program assumes that sentences are
seperated by either a full stop (.) character, or a exclamation mark (!) character,
or a query (?) character, each followed by whitespace (as defined for Assignment 3).
For example, assume that the original file "report.txt" contained the following
text:
ASSUME THAT A STUDENT IS TYPING HIS FINAL REPORT FOR ENGLISH CLASS
INTO A TEXT FILE. AFTER COMPLETING THE REPORT, HE REALIZED THAT
HE MISTAKENLY HAD THE CAPS LOCK KEY ON THROUGHOUT THE TYPING PROCESS. HE SAID
OH MY GOSH WHAT HAVE I DONE? HOW AM I GOING TO FIX THIS? BUT THEN HE KNEW C.
SO HE SAID I WILL WRITE ME A C PROGRAM.
After running your program, the corrected file "report.txt" would contain the
following text:
Assume that a student is typing his final report for english class
into a text file. After completing the report, he realized that
he mistakenly had the caps lock key on throughout the typing process. He said
oh my gosh what have i done? How am i going to fix this? But then he knew C.
So he said I will write me a c program.