Question: struct nameType { string first; string last; }; struct studentType { nameType name; double gpa; }; a. Write a program that declares an array of

struct nameType {

string first;

string last;

};

struct studentType {

nameType name;

double gpa;

};

a. Write a program that declares an array of the studentType structure, size 10, name of your choice, and includes the following:

Write a void function to request user input into each of the members of the studentType structure array. Be sure to include proper user prompts. Assume the entire structure array is filled. Write the prototype and the function definition.

Call the function from main.

Write a void function to output the information in the studentType structure array. Write the prototype and the function definition.

Call the function from main.

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!