Question: You MUST use 1-dimensional arrays, dynamic memory allocation, scoped enumerations, and at least three user-defined functions. For instance, you could use one for the menu
You MUST use 1-dimensional arrays, dynamic memory allocation, scoped enumerations, and at least three user-defined functions. For instance, you could use one for the menu and one for each task but the design is up to you.
Task Details
Your program will be a menu-driven application. The program will display a menu of choices to the user and based on the users response will perform one of the tasks below:
Welcome to Party Incs RSVP system! Please choose one of the menu options below:
Add event
Add Guest List
View Guest List
Change RSVP status
Quit
Enter choice here:
For tasks 1, 2, and 3 perform the task and then display the menu again giving the user an opportunity to make an additional choice. This should continue until the user chooses the quit choice.
Add event
The RSVP system only needs to keep track of one event at a time. When the program starts the first step is to add the details for the event to be tracked. Ask the user to enter a theme, location, date, and size (number of guests allowed).
Add Guest List
Ask the user to enter the names associated with each available invitation (size of event). If the user enters more names than available invites, provide an error message. Use two parallel one-dimensional arrays to contain the invitees name and response. The first one-dimensional array should contain a pointer to a dynamically allocated string containing the invited persons name. The second one- dimensional array should contain a scoped enum that determines if the invitees RSVP status is a yes, no, maybe, or no response for the event. If an invitation is not assigned, the name array will contain a null pointer (nullptr) and the RSVP array should contain the enum for no response.
View Guest List
Display the list of invited guests and their RSVP status.
Change RSVP status
Ask the user for a users name and the RSVP status you wish to update the user to. You will need to search for the users name and update the RSVP array accordingly.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
