Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. Consider the following declarations and statements: struct nameType struct co

ID: 3881098 • Letter: 1

Question

1. Consider the following declarations and statements: struct nameType struct courseType string first; string last; string name; int cal1 Num; int credits; char grade; struct studentType nameType name: double gpa; courseType courses [501: studentType classList [100]: Give a C++ statement to do each the following operations. a) Set the first name of 2nd student (ie, index 1) stored in the classList array equal to uben" b) Read the gpa of the 5th student (i.e. index 4) stored in the classList, array from cin c) Write the name of the 10t course (i.e. index 9) taken by the 19th student (i.e. index 18) stored in the classList array to cout.

Explanation / Answer

(a)

classList[1].name.first = "Hubert";

(b)

cin>>classList[4].gpa;

(c)

cout<<classList[18].courses[9];