
The George Washington University
School of Engineering and Applied Science
Department of Electrical Engineering and Computer Science
CSci 51 -- Fall 2001
Project #7
Due Date: 5pm Tuesday, November 20, 2001
Submit to the CS Office, 7th Floor Academic Center
This project CANNOT BE DROPPED and is the basis for Project 8
Part 1
Here is the specification for a Simple_Dates package.
Write the body. You may use this test program to test
Simple_Dates if you wish. Note that we are using a private type for the
Date Record.
Part 2
Part 2 involves setting up a database for your audio compact discs (CDs). Attached is the source code for an interactive user interface program, My_CD_Manager, and the spec and body of a package Compact. My_CD_Manager, in operation, looks something like this:
Select one of the operations below. C Clear the databas R Read database from disk W Write database to disk A Add CD record to database D Delete CD record from database F Find a CD record in the database P Display all records in the database Q Exit the program Please type a command, then press Enter > a Thank you for correct input. A entered; here we'd add
Compile these three programs. Then link My_CD_Manager and run it, just
to see how it behaves. When you look at these source files, you'll discover that
Next, link the My_CD_Manager operations with the appropriate Compact operations. Do not implement any of the Compact package. That will be Project 8. This project just gets everything connected correctly before we move ahead with implementation.