The George Washington University
School of Engineering and Applied Science
Department of Computer Science
CSci 131 -- Data Structures
Lab #2
For labs meeting the week of Aug. 30, 1999

This project depends on Chapters 1 and 2

A. Write a program that tests the operations in package Ada.Calendar. Try to add two times together, for example. Also investigate what happens when Time_Of is called with parameters that would lead to an invalid time value (February 30, for example, or February 29, 1991). Does Ada.Calendar behave correctly, as the specification suggests and the Ada Standard requires?

B. The package Currency has a few “stubbed out” missing pieces in the body. Find these and complete them. They should be easy - use other operations in the package as examples. Compile the package.

C. Write a program that tests some of the operations of the package Currency. You can use Test_Dates and Test_Rationals_1 to get ideas.