The George Washington University
School of Engineering and Applied Science
Department of Computer Science
CSci 131 -- Algorithms and Data Structures I
Lab #1
For labs meeting on Jan. 15, 2002

This exercise will make sure you are able to print files on the lab printers, and get you started on Project 1.

Part I. Setting Up.

Do Project #0 as given on the Project 0 handout.

Part II. Printing hard copy in the lab.

All you need to do here is print a copy of your survey form.

Part III. Steps toward Project 1

  1. Copy and compile each of the following files from programs131:

  2. currency.ads
    currency.adb
    currency-io.ads
    currency-io.adb
    debugging_support.ads
    debugging_support.adb

    These 3 packages from the book will be used by Project 1.
     

  3. Now copy and compile these component files that are part of Project 1:

  4. cars.ads
    cars.adb
    basic_test_cars.adb
     
  5. Examine the three listing files cars.lss, cars.lsb, and basic_test_cars.adb. Make sure you understand the contents of each of these listings; note that the package body contains a stub for the constructor function.

  6.  
  7. Now link and run basic_test_cars.exe. Make sure you understand how each line of output was produced.

  8.  
  9. If you have time, complete the stub in the package body; recompile, relink, and rerun the test program.