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.

CONTACT DETAILS

For any other questions or other tasks please feel free to contact me
via email: mhassnainjamil@gmail.com
via WhatsApp: +92-324-7042178
via skype: hassnainjamil1

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

Post a Comment

Popular posts from this blog

[SOLVED] Branch Coverage, Statement Coverage and Path Coverage | Java Unit Testing

HTML, PHP URL registration and lising program Internet Programming Spring 2016 Assignment #5