in c++ Write a function named “getLowest” that accepts a vector of pointers to Student objects. It will go through the list and return pointers to the Student or GradStudent with the lowest student ID and GPA. Please note that the vector contains pointers to either Student or GradStudent objects. Please show that you have tested with a vector of pointers of mixed Student and GradStudent objects (in the same vector) For example, if these students and grad students are in the list Student(2000, "John Smith", 4.0) GradStudent(3000,"Nancy Brown", 3.5, 2021) ; Student(1000, "Bob Johnson", 3.0) ; GradStudent(4000, "Tim Jackson", 2.0, 2020)) ; It will return pointers to these two objects: Lowest ID: ID(1000) NAME(Bob Johnson) GPA(3.00) Lowest GPA: ID(4000) NAME(Tim Jackson) GPA(2.00) GRADUATION- YEAR(2020)
in c++ Write a function named “getLowest” that accepts a vector of pointers to Student objects. It will go through the list and return pointers to the Student or GradStudent with the lowest student ID and GPA. Please note that the vector contains pointers to either Student or GradStudent objects. Please show that you have tested with a vector of pointers of mixed Student and GradStudent objects (in the same vector) For example, if these students and grad students are in the list Student(2000, "John Smith", 4.0) GradStudent(3000,"Nancy Brown", 3.5, 2021) ; Student(1000, "Bob Johnson", 3.0) ; GradStudent(4000, "Tim Jackson", 2.0, 2020)) ; It will return pointers to these two objects: Lowest ID: ID(1000) NAME(Bob Johnson) GPA(3.00) Lowest GPA: ID(4000) NAME(Tim Jackson) GPA(2.00) GRADUATION- YEAR(2020)
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
in c++
Write a function named “getLowest” that accepts a vector of pointers to Student
objects. It will go through the list and return pointers to the Student or
GradStudent with the lowest student ID and GPA. Please note that the vector
contains pointers to either Student or GradStudent objects.
Please show that you have tested with a vector of pointers of mixed Student and
GradStudent objects (in the same vector)
For example, if these students and grad students are in the list
Student(2000, "John Smith", 4.0)
GradStudent(3000,"Nancy Brown", 3.5, 2021) ;
objects. It will go through the list and return pointers to the Student or
GradStudent with the lowest student ID and GPA. Please note that the vector
contains pointers to either Student or GradStudent objects.
Please show that you have tested with a vector of pointers of mixed Student and
GradStudent objects (in the same vector)
For example, if these students and grad students are in the list
Student(2000, "John Smith", 4.0)
GradStudent(3000,"Nancy Brown", 3.5, 2021) ;
Student(1000, "Bob Johnson", 3.0) ;
GradStudent(4000, "Tim Jackson", 2.0, 2020)) ;
It will return pointers to these two objects:
Lowest ID: ID(1000) NAME(Bob Johnson) GPA(3.00)
Lowest GPA: ID(4000) NAME(Tim Jackson) GPA(2.00) GRADUATION-
YEAR(2020)
GradStudent(4000, "Tim Jackson", 2.0, 2020)) ;
It will return pointers to these two objects:
Lowest ID: ID(1000) NAME(Bob Johnson) GPA(3.00)
Lowest GPA: ID(4000) NAME(Tim Jackson) GPA(2.00) GRADUATION-
YEAR(2020)
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps with 1 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education