Question: 4 ] Write a program with an array of structures: Each structure should store: last name, first initial, GPA, and total number of credit hours

4] Write a program with an array of structures: Each structure should store: last name, first initial, GPA, and total number of credit hours taken by a student. (Choose appropriate types for each!) The array should be able to hold information for up to 100 students. Initialize the first two array elements with the following info:o DoeJ 3.5550o Smith K 2.8060 Initialize the last array element with:o Aaaa B 3.0570 Display the three records above on the screen.7] Modify the program from #4 above (array of structures) by introducing a pointer to a stucture, named structPtr. Initialize structPtr to point to point to the first structure in the array. Print the first structure using structPtr instead of the array name. Move structPtr forward (so it points to the second structure in the array) usingo Array notationo Pointer notationWhich syntax is simpler? A: __________________________________________________Leave the simpler version in the code, and comment out the other. Print the second structure using structPtr instead of the array name.
Solve for code blocks not c++
4 ] Write a program with an array of structures:

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 Programming Questions!