
HighestGPAData.txt:
3.4 Randy
3.2 Kathy
2.5 Colt
3.4 Tom
3.8 Ron
3.8 Mickey
3.6 Peter
3.5 Donald
3.8 Cindy
3.7 Dome
3.9 Andy
3.8 Fox
3.9 Minnie
2.7 Gilda
3.9 Vinay
3.4 Danny
main.cpp:
///*********************************************************
///
/// This program uses the class myStack to determine the
/// highest GPA from a list of students with their GPA.
/// The program also outputs the names of the students
/// who received the highest GPA.
///*********************************************************
#include <iostream>
#include <iomanip>
#include <fstream>
#include <string>
#include “myStack.h”
using namespace std;
int main()
{
///Step 1
double GPA;
double highestGPA;
string name;
stackType<string> stack(100);
ifstream infile;
infile.open(“HighestGPAData.txt”); //Step 2
if (!infile) //Step 3
{
cout << “The input file does not “
PayPal Gateway not configured
PayPal Gateway not configured