Question: in c please 2. Name this program convert.c This program takes three command line arguments. The first argument will be either lower or upper. The

in c please
 in c please 2. Name this program convert.c This program takes

2. Name this program convert.c This program takes three command line arguments. The first argument will be either "lower" or "upper". The second argument is the name of an input file, and the third argument is the name of an output file. The program should first confirm the input file can be opened for reading (exiting with an appropriate error message ifit cannot be). Then the program will read the input file, convert all the letters in the file to either lowercase or uppercase ones depending on the first argument, and save the result into the output file. You can assume the input file contains one or more lines, and each line contains up to 100 characters and ends with a newline. To preserve the whitespaces between words, we do not recommend using scanf with "%s". The two sample lowing are two sample executions of the program. Contents of myData The Quick Brown Fox Jumps over the Lazy old Dog Crimson TideRoll Tide Rol1! Was UA founded on April 12, 1831 /a.out upper myData outfilel Contents of outfile1 THE QUICK BROWN FOX JUMPS OVER THE LAZY OLD DOG CRIMSON TIDEROLL TIDE ROLL!! WAS UA FOUNDED ON APRIL 12, 1831? /a.out lower myData outfile2 Contents of outfile2 the quick brown fox jumps over the lazy old dog crimson tide rol1 tide roll!!! was ua founded on april 12, 1831

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 Databases Questions!