Question: Use C++ 1. (Array of Structures) Design a structure Student containing the following members 1) First Name; 2) Last name; 3) Date of birth (it
1. (Array of Structures) Design a structure Student containing the following members 1) First Name; 2) Last name; 3) Date of birth (it should be in turn a structure containing three members Year, Month, Day); 4) Phone number; 5) Major field of study Find appropriate data types for each field. a) (20 points) Design a main function and test there a structure, which you designed, creating an object of the Student type, assigning some meaningful values to all its fields and thern printing them out. b) (20 points) Then in the same main function define an array of structures belonging to the Student structure and containing 6 elements. Assign all values to the elements of this array using initialization at the time of its definition. Display the content of the array created (use a loop) ) (30 points) Add a function that allows the user to search the structure array for a particular student. It should accepta student's last name as an argument and then search the array for a structure with that name in the Last Name field. All structures that match should be displayed. If no structure matches, a message saying so should be displayed. d) (30 points) Add a second function that allows the user to search for a student born in a particular year. It should accept a year number as an argument and then search for a student with a birth year that matches it. All students that match should be displayed. If no student matches, a message saying so should be displayed
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
