PROGRAMMING ASSIGNMENT 3 - APPOINTMENT BOOK

You will need a good understanding of the material from chapters 8 and 9

Due dates:

  1. Program Specifications & Header files - April 1, 1997 (10 pts)
  2. Object .CPP files - April 8, 1997 (10 pts)
  3. Entire Program (disk and printout) - April 15, 1997 (20 pts)

My Personal Appointment Book

You are to design and write a prototype C++ program for a personal appointment book. An appointment has a description (for example, "see the dentist") and a date and time. Appointments can be Onetime, Daily, Weekly, and Monthly. You might want a virtual function OccursOn(Date dat) that checks whether the appointment occurs on date dat. For example, for a monthly appointment, you must check whether the day of the month matches.

Your program should:

  1. fill a vector of Appointment* with a mixture of appointments.
  2. display all appointments for a date entered by the user.
  3. allow the user to add new appointments (the user must specify the type of appointment, description, date and time).
  4. allow the user to save the appoinment data to a file.
  5. allow the user to reload the data from a file.

Saving requires a virtual function Save that saves the type, description, date and time.
Loading requires that you determine the type of apointment, before creating an object of that type and then calling a virtual function Load

PROGRAM SMART - REUSE YOUR CODE WHEREVER POSSIBLE!!!!!

Your final program will be graded according to the following criteria: