Course Solutions Uncategorized (Solved) : Highestgpadatatxt 34 Randy 32 Kathy 25 Colt 34 Tom 38 Ron 38 Mickey 36 Peter 35 Donald 38 Q35531970 . . . .

(Solved) : Highestgpadatatxt 34 Randy 32 Kathy 25 Colt 34 Tom 38 Ron 38 Mickey 36 Peter 35 Donald 38 Q35531970 . . . .

 

To complete this assignment: Please study the code Stack as Array example for assignment 5N posted in module 6 under assignm

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 “

  

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post