Question: Write a C program that reads from stdin information for two students and save the information for each student into an object of the following

Write a C program that reads from stdin information for two students and save the information for each student into an object of the following C structure. Assume the name for each student will contain no more than 20 lower case English characters and the gpa for each student will be a real number between 0 and 4. After the information has been retrieved from the user, the program should print all students information twice. The first time it should print according to alphabetical name order and the second time it should print according to gpa order.

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!