the damned assignment guidelines
Figured I should post these before people start posting anything else
With this assignment you will learn how to manage lists of data. You will use a linked list to organize the data.
The assignment is to write a menu driven program that manages a date book.
The Menu commands will be:
A....Add a new Entry
D....Delete an Entry
P....Display the date book on the screen in date/time order.
S....Save the date book to a file. //copies the entire date book contents to a file
R....Restore a date book from a file. //loads additional data from a file
C....Clear the date book. //gets rid of the entries
Q...Quit
You must provide an input file for your program containing 6 entries.
Whenever the user tries to save the date book, the program will output the current phonebook to a file in date order. You can overwrite any previous information in the file. The name of the output file will need to be prompted for.
You will use a struct or class for your date book entry and a linked list to organize the data in the program. Your entry will contain day, month, year, time and event information.
When you add an entry the program will ask the user for each of these fields on a separate line and dynamically allocate memory for storage of the information.
When you delete a field the program will ask you for the date and time of the record that should be deleted. The entry must be removed from the list and reallocated to the heap.
When you display the date book on the screen it must be in date/time order.
Clearing the date book will reallocate all of the memory for the entries to the heap.
Instructions:
Your input file must have 6 entries.
Your files should be called datebook.cpp and your input file should be called input.txt.
The datebook.cpp file must contain at least 8 user defined functions.
You must use function prototypes and don't use global variables.
Your code should be well designed, well commented and written with good style.