Question: In C++, write a program that reads from the command line a list of students first name and the students GPA. The program will stop
In C++, write a program that reads from the command line a list of students first name and the students GPA. The program will stop reading names and gpas once a negative number is entered for the gpa. The program should output the highest GPA and the student(s) who have that GPA. Note: More than one student may have the highest GPA and all students with the highest GPA must be printed.
Hint: Use a stack to store the names of the student(s) with the highest gpa. This will allow you to have multiple students with the same high gpa.
Not sure how to approach this one...
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
