Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

n this Lab, you need to finish the following tasks . 1 . Download FileIO . c and input . txt from BlackBoard, and store

n this Lab, you need to finish the following tasks.1. Download FileIO.c and input.txt from BlackBoard, and store them in the same directory.2. Compile and run FileIO.c using the following commands:gcc FileIO.c -o FileIO./FileIO3. Modify FileIO.c and rename it using your last name to meet the following requirements: If the character in input.txt is a lower-case letter, your program converts it into anupper-case letter and write it to output.txt. If the character in input.txt is an upper-case letter, your program converts it into alower-case letter and write it to output.txt. If the character in input.txt is not a letter, your program just writes it to output.txtwithout change. Your program should also check the number of command-line arguments. If more thanone command-line argument are provided, your program should print This program doesnot allow more than one command-line argument! on the screen, and exit immediately.For example, if you run your program as follows:./Your_LastName 1Since there are two command-line arguments (i.e.,./Your_LastName and 1) in theabove example, your program should print This program does not allow more than onecommand-line argument! on the screen, and exit immediately without accessing thefiles.4. Compile and run your modified program.

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

Database And Expert Systems Applications 31st International Conference Dexa 2020 Bratislava Slovakia September 14 17 2020 Proceedings Part 1 Lncs 12391

Authors: Sven Hartmann ,Josef Kung ,Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil

1st Edition

303059002X, 978-3030590024

More Books

Students also viewed these Databases questions