#include #include #define MAX_STUDENTS 250 typedef struct { char *first; char *last; int age; } PersonType; typedef struct { PersonType personalInfo; char *stuNumber; float gpa; } StudentType; // Functions/Procedures used in this program void increaseAge(StudentType *); void printStudent(StudentType *); int main() { StudentType students[MAX_STUDENTS]; int numStudents = 3; printf("StudentType requires %lu bytes\n", sizeof(StudentType)); students[0].personalInfo.first = "April"; students[0].personalInfo.last = "Rain"; students[0].personalInfo.age = 22; students[0].stuNumber = "100444555"; students[0].gpa = 9.0; students[1].personalInfo.first = "May"; students[1].personalInfo.last = "Flowers"; students[1].personalInfo.age = 24; students[1].stuNumber = "100222333"; students[1].gpa = 8.7; students[2].personalInfo.first = "June"; students[2].personalInfo.last = "Bugs"; students[2].personalInfo.age = 99; students[2].stuNumber = "100777888"; students[2].gpa = 11.5; printf("Age before increasing: %d\n", students[0].personalInfo.age); increaseAge(&students[0]); printf("Age after increasing: %d\n\n", students[0].personalInfo.age); StudentType *studentPtr = students; for (int i=0; ipersonalInfo.age++; } // Displays student to the console showing name, age and GPA. void printStudent (StudentType *s) { printf("%d year old %s %s has a GPA of %.1f \n", s->personalInfo.age, s->personalInfo.first, s->personalInfo.last, s->gpa); }