Function Declarations: /*-----------------------------------------------------------------------*/ void NewContact(struct otherc, struct address); //struct X represents all the variables in said-struct. /* */ /* Inputs: contact file */ /* Output: appended contact file */ /* Comments: Reads current contact file adds a new contact to the file taking input from user and writes changes */ /*-----------------------------------------------------------------------*/ /*-----------------------------------------------------------------------*/ File CLetters(struct otherc); /* */ /* Inputs: contact file */ /* Output: individual contact letters */ /* Comments: Reads contact file creates personalised letters and saves individual letters to disc*/ /*-----------------------------------------------------------------------*/ /*-----------------------------------------------------------------------*/ File LPrint(struct otherc, struct address); /* */ /* Inputs: individual letters */ /* Output: printed individual contact letters */ /* Comments: Reads and prints individual contact letters */ /*-----------------------------------------------------------------------*/ /*-----------------------------------------------------------------------*/ void AppendC(struct otherc); /* */ /* Inputs: contact file */ /* Output: appended contact file */ /* Comments: Reads the contact file and allows the user to change the attending status of the contact For example after they have replied, indicating whether or not they are coming */ /*-----------------------------------------------------------------------*/ /*-----------------------------------------------------------------------*/ void OutputSpecs(); /* */ /* Inputs: None */ /* Output: Total number of meals required, and number of guests attending */ /* Comments: Reads contact database, and sums all the meals required */ /*-----------------------------------------------------------------------*/ data-structure declarations: // Structure for an address ------------------------------ typedef struct { String add1; // address line 1 String add2; // address line 2 String town // town String county // county String post // postcode } address; // ---------------------------------------------------- // Structure for other contact details ------------------ typedef struct { String name; int mob; // mobile phone number String email; // email address int food; // Food = 1, Disco-only = 0, Vegetarian = 2 int addGuests; // Additional Guests brought } otherc; // ---------------------------------------------------- // Variable for contact id --------------------------------- int id; // unique id of contact // Variable for contact reply status------------------- bool attenting; // boolean, 1 if attending 0 if not attending