ICT310 Lab 2: Introduction to GCC and C ProgrammingLearning Objectives:1.Learn to create simple C programs with a text editor such asviorpico;2.Learn to compile C programs with gcc;3.Learn to use the standard library functionsprintf,fgets,exitetc.;4.Learn to use standard input (stdin), standard output (stdout) and standard error (stderr).Required Reading:Lecture Notes for Topic 1LINUX: Rute User's Tutorial and Exposition(or justRutefor short): Chapter 4: Basic Commands.Amini manualfor vi editorAccess to Software:Internal students will use the lab machines ECL2.039 or ECL2.044 (See Lab 1 for instructions on using the lab machines). You should bring a USB flash drive with you to the lab for copying your files from the lab machine.For external students, if you have already installed Linux, then use your own Linux installation. If you have not yet installed your own Linux, you may use our Linux server (ceto.murdoch.edu.au) temporarily until you haveinstalled the Linux on your machine (see Lab 1 for detail). More information on how to install Linux is available from Download Page of this website.Theory ExercisesStallings (5th Edition) : Problems 1.3, 1.7, and 1.12 (pages 39-40)Stallings (6th Edition) : Problems 1.3, 1.7, and 1.12 (pages 38-39)Stallings (7th Edition) : Problems 1.3, 1.7, and 1.12 (pages 37-39)
C Programming ExercisesNote, all exercises must be done via the terminal commands, not GUI tools.Do not use any IDE to build your programs. Do not use GUI file managers to manage your directories and files. Also each exercise should be in a separate directory, which itself is under a directory calledlab021.Use commandmkdirto create a new directory namedlab02under your homedirectory:2. % cd3. % mkdir lab02In the above example, the symbol "%" denotes your shell prompt. Your actual shell prompt may vary. Shell prompt can be configured to whatever you like. The commandcdsets your current directory to your home directory.