Highest GPA Calculator Using Stack and File Handling in C++

Highest GPA Calculator

Introduction

We want to write a C++ program that reads a data file consisting of each student’s GPA followed by the student’s name. The program then prints the highest GPA and the names of all of the students who received that GPA. The program scans the input file only once. Moreover, we assume that there is a maximum of 100 students in the class. Use a stack to write your code. Here is an example of the input/output operations.

Input 

The program reads an input file consisting of each student’s GPA, followed by the
student’s name. Sample data is:
3.5 Bill
3.6 John
2.7 Lisa
3.9 Kathy
3.4 Jason
3.9 David
3.4 Jack

Output 

The highest GPA and all of the names associated with the highest GPA. For example,
for the above data, the highest GPA is 3.9, and the students with that GPA are Kathy and David.

Get Project Solution Now

Comments

  1. low GPA can cause succide ,incase you have a low gpa,you can hire PRAWNCRACKER82@GMAIL to help you hack it.andboost your gpa.

    ReplyDelete
    Replies
    1. What are you services that you're providing? And secondly GPA doesn't matter and not cause any suicide (this is wrong message from you side)

      Thanks!

      Delete

Post a Comment