Wyo Data Structures Ch. 4 Programming Assignment

Ch4Proj2.cpp

The program must present the following menu exactly:

S - Send a message
R - Read next message
D - Delete all unread messages
X - Exit

The S menu option prompts the user with "Type your message: " and then accepts an "email message" that can include spaces. The email message must be stored in an "unread email" queue. The R menu option displays the next email message from the unread email queue. If there are no unread email messages in the unread email queue, display the message "There are no unread messages." The D menu option deletes all unread email messages in the unread email queue. The X menu option exits the program. If the user enters an illegal menu option warn the user with the message "You entered an illegal command." and display the menu again. Allow the user to type uppercase or lettercase letters for the menu options.

You must use College Board apqueue objects (not our textbook author's).

You must also use the following functions(s) (besides the main function) to demonstrate modular, structured programming.

void displayMenu()
// precondition: none
// postcondition: menu is displayed

Your program must follow the Coding Standards. Save the source code file as "Ch4Proj2.cpp" in the appropriate network folder.

Preconditions: