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
-
Copy and compile each of the following files from programs131:
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.
-
Now copy and compile these component files that are part of Project 1:
cars.ads
cars.adb
basic_test_cars.adb
-
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.
-
Now link and run basic_test_cars.exe. Make sure you understand
how each line of output was produced.
-
If you have time, complete the stub in the package body; recompile, relink,
and rerun the test program.