Write a program that creates an array of structures of type


Write a program that creates an array of structures of type Student. The structures must include the following data members (it can have more!):

a. A string to hold a first name of no more than 10 characters;

b. A string to hold a middle name of no more than 10 characters;

c. A string to hold a surname of no more than 20 characters;

d. A string to hold the class of the student(ie., freshman,sophmore,etc.-you decide the length);

e. a float to hold the gpa of the student;

f. A char to hold the gender of the student;

g. An array of 4 floats to hold the four test scores of the students;

h.A double to hold the average of the four scores

In main declare an array of 20 of these structures. Next send each individual member of the array to a function to be initialized(do NOT send the entire array) You may calculate the average of the four integers from this function, if you wish, or you may call another function to perform this function, you MUST send the ENTIRE ARRAY to this output function!

Two last notes: you may use either C-strings or the C++ strings class to represent strings. and second REMEMBER TO USE SYMBOLIC CONTANTS.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Write a program that creates an array of structures of type
Reference No:- TGS01190646

Expected delivery within 24 Hours