Information
This is the input file: input1.txt:
The file after running the program on it: output1.txtASSUME 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".
This is the prototype for the function: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".
and this is the command line to compile it:void proper(const char *filename);
Additional tests:gcc -O -Werror -Wall -Wextra -ansi -pedantic main.c proper.c -o proper
Notes:
The floating point number 3.e+10 is written using scientific notation.
with filename replaced by the actual file you were trying to open.Can't open filename.
Windows does not provide this tool, but it is available as part of the Cygwin tools. (It should already be installed and avialable on Linux and Mac).tr '[:lower:]' '[:upper:] < somefile.txt