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. 16, 2001

This exercise will make sure you are able to print files on the lab printers, and give you a bit of experience in understanding and modifying some relatively simple Ada 95 programs.

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. Modifying Time_Of_Day.

Copy, compile, and run the program programs51/time_of_day.adb.

Now modify the program so that the time is displayed in AM/PM form instead of 24-hour form. That is, 3:00:00 will be displayed as 3:00:00 AM, and 15:00:00 will be displayed as 3:00:00 PM. 12:00:00 should be displayed as 12:00:00 Noon, and 24:00:00 or 0:00:00 should be displayed as 12:00:00 Midnight.