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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started