Question: In c++ Write a program that uses an array of structs to store the first name, middle initial, last name, and score of 5 students.

In c++

Write a program that uses an array of structs to store the first name, middle initial, last name, and score of 5 students.

1. Declare the size of the array of structs.

2. Define your struct globally(i.e before main)

3. Main:

a) you'll declare the array of structs.

b) you'll call a function that willl initialize the values of the array of struct(first names, middle initial, last name, and score) entered by user.

c) then you'll ask the user to enter a name to find then call a function that will search for a student by the name entered by the user. The funtion returns a Boolean value and display an apppropiate message to the user.

d) Next, you'll call a function that will return the average of all the students' scores and dissplay the result to the user.

Write all necessary functions and prototypes. All parameters must be passed by reference.

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!