Answered step by step
Verified Expert Solution
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.
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started