Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Computer Aided Database Design

Authors: Antonio Albano, Valeria De Antonellis, A. Di Leva

1st Edition

0444877355, 978-0444877352

More Books

Students also viewed these Databases questions

Question

What lessons in intervention design, does this case represent?

Answered: 1 week ago