1. /*-----------------------------------------------------*/ typedef struct { int guestID char *firstName char *lastName char *email int response /*0 for no response, 1 for a "No", 2 for a "Yes"*/ } Guest; /*-----------------------------------------------------*/ 2. /*-----------------------------------------------------*/ Struct menu ( char name; char meat1; char meat2; char veg; ) /*-----------------------------------------------------*/ 3. /*-----------------------------------------------------*/ Struct song ( char request1; char request2; ) /*-----------------------------------------------------*/ 4. //structure for invitation card-------------------------- typedef struct { invite Personal; //call details of person invited invite Address; //call adddress of person invited inviteStatus; //show invitation status entertainStatus; //show choice of meal & music } invi card;//------------------------------------------- 5. /*-----------------------------------------------------*/ int SendInvite(int ID,*char firstName, *char lastName, *char email) Inputs: Name of person to invite, their unique 'guest ID#' and email Outputs: An email containing the party info and a link to the rsvp webpage, a success flag Comments: Takes input from a form. Adds the name & ID to the database. /*-----------------------------------------------------*/ 6. /*-----------------------------------------------------*/ int updateInvite(invite *invites, int invite, boolean inviteSent, boolean replyReceived, boolean requiresRoom, int mealPreference); /* */ /* Inputs: Pointer to array of invites, int invite = the array index of the invite to modify. other values = direct copy to the struct */ /* Outputs: Success flag */ /* Comments: Updates the selected invite with the pass by value values */ /*-----------------------------------------------------*/ 7. /*-----------------------------------------------------*/ void notreplied (char notreplied, respond resendinvite); inputs: people who have not yet replied to the invite outputs: the system will resend the invite to people who have not replied to the original invite comments: this function takes the people who did note reply to the original invite and resends the invite to make sure people didnt miss the original invite. /*-----------------------------------------------------*/ 8. /*----------------------------------------------------*/ function 1 (list for attending); /*inputs: import data of person attend from array */ /*outputs: received data from array and produce list */ /*comments: Produce the details and list of attendees */ /*----------------------------------------------------*/ 9. /*-----------------------------------------------------*/ Function 3 (Host Message to the guests) { Post out message; } /*-----------------------------------------------------*/