Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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++

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

6. Explain the power of labels.

Answered: 1 week ago

Question

10. Discuss the complexities of language policies.

Answered: 1 week ago