Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CIS 2 4 1 Winter 2 0 2 4 - Section 0 1 : Lab 1 Maximum Points: 1 0 0 ( 3 % of

CIS241 Winter 2024- Section 01: Lab1Maximum Points: 100(3% of the final grade)Due at 9:00PM on Monday, January 22,2024(Please finish this lab individually)On BlackBoard, there are FileIO.c and input.txt.FileIO.c reads characters from input.txtand write them without change to a new file output.txt.In 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

The Structure Of The Relational Database Model

Authors: Jan Paredaens ,Paul De Bra ,Marc Gyssens ,Dirk Van Gucht

1st Edition

3642699588, 978-3642699580

More Books

Students also viewed these Databases questions