CS 0007 Assignment 3 – Build a Database


Objective:


You’ve decided to throw a charity party. You want to invite all of your friends and all of their friends. Write a program that will allow you to keep a "database" of all the people on the guest list and the amount of money they’re going to donate to the charity.

You want to be able to save your database information to a nontext file. You want to be able to sort the database entries according to last name and money donated. You also want to be able to generate the list of entries and write it to a text file. The program should also be able to output the total donation amount on file (at the end of the text dump).


Requirements:

record

firstname,lastname:array[1..80] of char;

donation:integer;

end;

1. Add guest

2. Sort guests by last name

3. Sort guests by donation amount

4. Save database

5. Load database

6. Dump to screen

7. Dump to text file

8. Quit

Due date:

11/17/99

What to turn in:

(To be announced)