Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Recommended Textbook for

MySQL/PHP Database Applications

Authors: Brad Bulger, Jay Greenspan, David Wall

2nd Edition

0764549634, 9780764549632

More Books

Students also viewed these Databases questions