Document Storage System Menu 1 - Create and store an e-mail 2 - Create and store a memo 3 - Create and store a report 4 - Display a document 5 - List all active documents 6 - List all archived documents 7 - Locate documents containing a specific word or phrase 8 - Archive a document 9 - Retrieve a document from the archive 10 - Clear the archive 99 - Quit Enter your choice: 1 Enter author: John Smith Enter subject: Thanksgiving Enter recipient: Jane Doe Enter recipient's e-mail address: jane.doe@gmail.com Enter text body (type END on separate line to stop): This is line 1 This is line 2 END E-mail #10001 entered into active documents list. Document Storage System Menu 1 - Create and store an e-mail 2 - Create and store a memo 3 - Create and store a report 4 - Display a document 5 - List all active documents 6 - List all archived documents 7 - Locate documents containing a specific word or phrase 8 - Archive a document 9 - Retrieve a document from the archive 10 - Clear the archive 99 - Quit Enter your choice: 2 Enter author: Jack Johnson Enter subject: Project 4 Question Enter recipient: Ms. Mitchell Enter distribution list (type END on separate line to stop): Mr. Bergeron Mr. Frey END Enter text body (type END on separate line to stop): This is line 1 This is line 3 END Memo #10002 entered into active documents list. Document Storage System Menu 1 - Create and store an e-mail 2 - Create and store a memo 3 - Create and store a report 4 - Display a document 5 - List all active documents 6 - List all archived documents 7 - Locate documents containing a specific word or phrase 8 - Archive a document 9 - Retrieve a document from the archive 10 - Clear the archive 99 - Quit Enter your choice: 3 Enter author: Sally Smart Enter title: End of Semester Party Enter text body (type END on separate line to stop): This is line 1 This is line 2 This is line 4 This is line 5 END Report #10003 entered into active documents list. Document Storage System Menu 1 - Create and store an e-mail 2 - Create and store a memo 3 - Create and store a report 4 - Display a document 5 - List all active documents 6 - List all archived documents 7 - Locate documents containing a specific word or phrase 8 - Archive a document 9 - Retrieve a document from the archive 10 - Clear the archive 99 - Quit Enter your choice: 4 Enter the document ID: 10003 Document #: 10003 Date: Thu Nov 19 16:23:02 EST 2009 Author: Sally Smart Title: End of Semester Party This is line 1 This is line 2 This is line 4 This is line 5 Document Storage System Menu 1 - Create and store an e-mail 2 - Create and store a memo 3 - Create and store a report 4 - Display a document 5 - List all active documents 6 - List all archived documents 7 - Locate documents containing a specific word or phrase 8 - Archive a document 9 - Retrieve a document from the archive 10 - Clear the archive 99 - Quit Enter your choice: 5 Active Document List: Document #: 10001 Date: Thu Nov 19 16:20:33 EST 2009 Author: John Smith Recipient: Jane Doe Subject: Thanksgiving E-mail Address: jane.doe@gmail.com Document #: 10002 Date: Thu Nov 19 16:22:00 EST 2009 Author: Jack Johnson Recipient: Ms. Mitchell Subject: Project 4 Question Distribution List: Mr. Frey Mr. Bergeron Document #: 10003 Date: Thu Nov 19 16:23:02 EST 2009 Author: Sally Smart Title: End of Semester Party Document Storage System Menu 1 - Create and store an e-mail 2 - Create and store a memo 3 - Create and store a report 4 - Display a document 5 - List all active documents 6 - List all archived documents 7 - Locate documents containing a specific word or phrase 8 - Archive a document 9 - Retrieve a document from the archive 10 - Clear the archive 99 - Quit Enter your choice: 6 There are no archived documents in the system. Document Storage System Menu 1 - Create and store an e-mail 2 - Create and store a memo 3 - Create and store a report 4 - Display a document 5 - List all active documents 6 - List all archived documents 7 - Locate documents containing a specific word or phrase 8 - Archive a document 9 - Retrieve a document from the archive 10 - Clear the archive 99 - Quit Enter your choice: 7 Get search phrase: line 3 10002 Document Storage System Menu 1 - Create and store an e-mail 2 - Create and store a memo 3 - Create and store a report 4 - Display a document 5 - List all active documents 6 - List all archived documents 7 - Locate documents containing a specific word or phrase 8 - Archive a document 9 - Retrieve a document from the archive 10 - Clear the archive 99 - Quit Enter your choice: 8 Enter the document ID: 10003 Document #10003 is now archived. Document Storage System Menu 1 - Create and store an e-mail 2 - Create and store a memo 3 - Create and store a report 4 - Display a document 5 - List all active documents 6 - List all archived documents 7 - Locate documents containing a specific word or phrase 8 - Archive a document 9 - Retrieve a document from the archive 10 - Clear the archive 99 - Quit Enter your choice: 5 Active Document List: Document #: 10001 Date: Thu Nov 19 16:20:33 EST 2009 Author: John Smith Recipient: Jane Doe Subject: Thanksgiving E-mail Address: jane.doe@gmail.com Document #: 10002 Date: Thu Nov 19 16:22:00 EST 2009 Author: Jack Johnson Recipient: Ms. Mitchell Subject: Project 4 Question Distribution List: Mr. Frey Mr. Bergeron Document Storage System Menu 1 - Create and store an e-mail 2 - Create and store a memo 3 - Create and store a report 4 - Display a document 5 - List all active documents 6 - List all archived documents 7 - Locate documents containing a specific word or phrase 8 - Archive a document 9 - Retrieve a document from the archive 10 - Clear the archive 99 - Quit Enter your choice: 6 Archived Document List: Document #: 10003 Date: Thu Nov 19 16:23:02 EST 2009 Author: Sally Smart Title: End of Semester Party Document Storage System Menu 1 - Create and store an e-mail 2 - Create and store a memo 3 - Create and store a report 4 - Display a document 5 - List all active documents 6 - List all archived documents 7 - Locate documents containing a specific word or phrase 8 - Archive a document 9 - Retrieve a document from the archive 10 - Clear the archive 99 - Quit Enter your choice: 8 Enter the document ID: 10001 Document #10001 is now archived. Document Storage System Menu 1 - Create and store an e-mail 2 - Create and store a memo 3 - Create and store a report 4 - Display a document 5 - List all active documents 6 - List all archived documents 7 - Locate documents containing a specific word or phrase 8 - Archive a document 9 - Retrieve a document from the archive 10 - Clear the archive 99 - Quit Enter your choice: 5 Active Document List: Document #: 10002 Date: Thu Nov 19 16:22:00 EST 2009 Author: Jack Johnson Recipient: Ms. Mitchell Subject: Project 4 Question Distribution List: Mr. Frey Mr. Bergeron Document Storage System Menu 1 - Create and store an e-mail 2 - Create and store a memo 3 - Create and store a report 4 - Display a document 5 - List all active documents 6 - List all archived documents 7 - Locate documents containing a specific word or phrase 8 - Archive a document 9 - Retrieve a document from the archive 10 - Clear the archive 99 - Quit Enter your choice: 6 Archived Document List: Document #: 10001 Date: Thu Nov 19 16:20:33 EST 2009 Author: John Smith Recipient: Jane Doe Subject: Thanksgiving E-mail Address: jane.doe@gmail.com Document #: 10003 Date: Thu Nov 19 16:23:02 EST 2009 Author: Sally Smart Title: End of Semester Party Document Storage System Menu 1 - Create and store an e-mail 2 - Create and store a memo 3 - Create and store a report 4 - Display a document 5 - List all active documents 6 - List all archived documents 7 - Locate documents containing a specific word or phrase 8 - Archive a document 9 - Retrieve a document from the archive 10 - Clear the archive 99 - Quit Enter your choice: 9 Enter the document ID: 10003 Document #10003 has been placed back into the active list. Document Storage System Menu 1 - Create and store an e-mail 2 - Create and store a memo 3 - Create and store a report 4 - Display a document 5 - List all active documents 6 - List all archived documents 7 - Locate documents containing a specific word or phrase 8 - Archive a document 9 - Retrieve a document from the archive 10 - Clear the archive 99 - Quit Enter your choice: 5 Active Document List: Document #: 10002 Date: Thu Nov 19 16:22:00 EST 2009 Author: Jack Johnson Recipient: Ms. Mitchell Subject: Project 4 Question Distribution List: Mr. Frey Mr. Bergeron Document #: 10003 Date: Thu Nov 19 16:23:02 EST 2009 Author: Sally Smart Title: End of Semester Party Document Storage System Menu 1 - Create and store an e-mail 2 - Create and store a memo 3 - Create and store a report 4 - Display a document 5 - List all active documents 6 - List all archived documents 7 - Locate documents containing a specific word or phrase 8 - Archive a document 9 - Retrieve a document from the archive 10 - Clear the archive 99 - Quit Enter your choice: 6 Archived Document List: Document #: 10001 Date: Thu Nov 19 16:20:33 EST 2009 Author: John Smith Recipient: Jane Doe Subject: Thanksgiving E-mail Address: jane.doe@gmail.com Document Storage System Menu 1 - Create and store an e-mail 2 - Create and store a memo 3 - Create and store a report 4 - Display a document 5 - List all active documents 6 - List all archived documents 7 - Locate documents containing a specific word or phrase 8 - Archive a document 9 - Retrieve a document from the archive 10 - Clear the archive 99 - Quit Enter your choice: 10 Archive has been cleared Document Storage System Menu 1 - Create and store an e-mail 2 - Create and store a memo 3 - Create and store a report 4 - Display a document 5 - List all active documents 6 - List all archived documents 7 - Locate documents containing a specific word or phrase 8 - Archive a document 9 - Retrieve a document from the archive 10 - Clear the archive 99 - Quit Enter your choice: 6 There are no archived documents in the system. Document Storage System Menu 1 - Create and store an e-mail 2 - Create and store a memo 3 - Create and store a report 4 - Display a document 5 - List all active documents 6 - List all archived documents 7 - Locate documents containing a specific word or phrase 8 - Archive a document 9 - Retrieve a document from the archive 10 - Clear the archive 99 - Quit Enter your choice: 99 Exiting Document Storage System