Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I'm trying to find the highest gpa in the student roster, I am struggling to find the Course.cpp code. Every other code is done, and

I'm trying to find the highest gpa in the student roster, I am struggling to find the Course.cpp code. Every other code is done, and does not need to be changed . In C++ please.

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

File is marked as read only Current file: Student.cpp - \begin{tabular}{r|r} 1 & \#ifndef STUDENT_H \\ 2 & \#define STUDENT_H \\ 3 & \\ 4 & \#include \\ 5 & using namespace std; \\ 6 & \\ 7 & // Class representing a student \\ 8 & class Student \{ \\ 9 & public: \\ 10 & Student(string first, string last, double gpa); \\ 11 & double GetGPA(); ; \\ 12 & string GetLast (); \\ 13 & string GetFirst (); \\ 14 & \\ 15 & private: \\ 16 & string first; // first name \\ 17 & string last; // last name \\ 18 & double gpa; // grade point average \\ 19 & 3; \end{tabular} e is marked as read only Current file: main.cpp - 3\}| 5.17.1: LAB: Find student with highest GPA File is marked as read only Current file: Course.h - Current file: Course.cpp - \#include \#include "Course.h" using namespace std; Student Course: : FindStudentHighestGpa() \{ /* Type your code here */ void Course:: AddStudent(Student s) \{ roster.push_back(s)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

What do Dimensions represent in OLAP Cubes?

Answered: 1 week ago