CSCI 159 Intro to Variables and I/O Lab

CSCI 159: Fall 2024 Lab 4

(Part I due Oct 15/16. Part III due Oct 22 or 23 at the beginning of lab)

    Parts I and II

  1. While you are in your top directory: You should have this in your home directory:
    	make159      
    	

  2. While in the top directory, you will type the following command onto the command line and hit return:
    	make -f make159 csci159/lab4 
    	
    This makefile will create a new directory csci159 with a subdirectory called lab4, and it will populate that directory with some files that your instructor has provided. cd into that lab4 directory. Do an "ls". You are provided with a README. Read the README. You are also provided, in directory lab4, with files called makefile, and some data files that end in 'in' or 'inx'. cat these files; you can see that they have some data ready to be read in and sorted.


  3. The new makefile is ready for you to use. When you have completed parts I and II as outlined in the README, execute the following command:
    	make lab4x
    	
    Make sure it gives you no errors or warnings.


  4. Now do the following:
    	make clean
    	
    This cleans up your directory of old executables. "ls" to see what remains.


  5. Execute the following command:
    	make submit
    	
    If successful, you will see a variety of updates. The git version control program is copying your updated directory contents to a location where the instructor can view and mark it. There is a deadline programmed into git, so if you try to submit after the deadline, it won't let you. Up until that deadline, you can submit and it will keep track of the most recent version, which is the one your instructor will look at.

  6. PART III


  7. Copy your file from Part II into another file called lab4v3.cpp Edit it to satisfy the requirements as per the README. You can resubmit the files on Oct 22/23 using the usual 'make clean' and 'make submit' commands.


Useful Links: Gara Pruesse's Homepage
Computing Science Homepage
Vancouver Island University Homepage
X2Go