/*---------------------------------------------*/ typedef struct( /* Personal details */ char FirstName[] char LastName[] char Address[] char EMail[] int Phone[] int UID // Unique User ID int Attending // 0 = Not Attending, 1 = Attending, 2 = Attending Late int Food // 0 = Normal, 1 = Veggie, 2 = Vegan, 3 = kosher, 4 = halal, 5 = lactose intolerant, 6 = no gluten, 7 = no nuts boolean Plusone // yes/no ) /*---------------------------------------------*/ void Registration() { Inputs: Pointers to FirstName, LastName, Address, EMail, Phone. Outputs: copies data to Struct and adds a UID. Comments: Enters the recipients details onto the database/system. Also generates a UID for each recipient. } /*---------------------------------------------*/ void PrintInvites() { Inputs: Pointers to FirstName, LastName, Address, UID. Output: Printed invite with above details on them. Comment: Prints an invite and also asks about food choices } /*---------------------------------------------*/ void Response() { Input: UID, Attending, Food,plusone,request1, request2, request3. Output: Copies data to Struct. Comment: Using the UID to identify each person, their response is recorded on the system. } /*---------------------------------------------*/ int CountAttend() { Input: Pointer to UID and Attending. Ouput: Number of attendees Attending dinner and Number people attending late. Comment: Counts number of people who have responded. } /*---------------------------------------------*/ char PrintAttendee() { Input: Pointer to UID, FirstName, LastName, Attending,plusone. Output: Prints name of attendee. Comment: Prints a name list for the door. } /*---------------------------------------------*/ int FoodChoice() { Input: Pointer to Attending, UID, Food, plusone. Output: Pointer to List. Comment: Creates a list of people with food restrictions for catering staff. } /*---------------------------------------------*/ typedef struct() { /**food**/ int food id char food name} /*---------------------------------------------*/ typedef struct() {/**Attending**/ int Attending id char Attending label } /*---------------------------------------------*/ typedef struct() {/**request**/ int UID char request1 char request2 char request3 } /*---------------------------------------------*/ int Reminder() { Input: Pointer to Attending, UID, FirstName, LastName, EMail, Phone. Output: Emails and SMS messages Comment: Creates personalised EMails and texts for each attendee and then sends them. } /*---------------------------------------------*/