Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Use 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) (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

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_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

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

Get Started

Recommended Textbook for

Databases On The Web Designing And Programming For Network Access

Authors: Patricia Ju

1st Edition

1558515100, 978-1558515109

Students also viewed these Databases questions

Question

Discuss the moral development theory.

Answered: 1 week ago

Question

1. Diagnose and solve a transfer of training problem.

Answered: 1 week ago