CS 131 PRACTICE WITH VARIABLES AND FUNCTIONS 1. What data structure is appropriate for the following? Write declarations. a. A person's name string name; b. The names of all my friends const int MAX_FRIENDS = 200; string friends[MAX_FRIENDS]; int numFriends; c. The names and address for one of my friends struct Address{ string street; string city; string state; } struct Friend{ string name; Address address; } d. The names and addresses for all of my friends const int MAX_FRIENDS = 200; Friend friends[MAX_FRIENDS]; int numFriends; e. For each of my 10 friends, whom she tolerates. bool tolerates[10][10] 2. Write the headings for each of the following functions. Assume the declarations above. a. Initializing the list of my friends from data in a file. void get_data(Friend friends[], int& numFriends); b. Printing the names of all my friends. void print_data(const Friend friends[], int numFriends); c. Determining how many of my friends live in a given state. int friends_by_state(const Friend friends[], int numFriends, string state)); Assuming state is local to the function: int friends_by_state(const Friend friends[], int numFriends); d. Editing an address for one of my friends (she moved). void edit_data(Friend friends[], int numFriends); e. Adding a friend. void add_friend(Friend friends[], int& numFriends); f. Printing the list of all my friends who tolerate each other void tolerate_each_other(bool tolerates[10] [10]);