Question: 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

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!