Question: Can someone solve this using c++ 1.(Array of Structures) Design a structure Student containing the following members 1) First Name; 2) Last name 3) Date

Can someone solve this using c++

Can someone solve this using c++ 1.(Array of Structures) Design a structure

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) Design a main function and test there a structure, which you designed, creating an instance of the Student type, assigning some meaningful values to all its fields and then printing them out b) 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) c) Add a function that allows the user to search the structure array for a particular student. It should accept a 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 saving so should be displaved. d) 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 saving so should be displaved

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!