William S.

asked • 04/29/21

Determining If a Student Should Be on Probation Due to Their GPA (C++ Program)

A student is put on probation if their GPA is below 2.0. Complete the Course class by implementing the CountProbation() member function, which returns the number of students with a GPA below 2.0.

Given classes:

  1. Class Course represents a course, which contains a vector of Student objects as a course roster. (Type your code in here)
  2. Class Student represents a classroom student, which has three data members: first name, last name, and GPA.

Hint: Refer to the Student class to explore the available functions that can be used for implementing the CountProbation() function.

Note: For testing purposes, different student values will be used.

Ex. For the following students:

Henry Cabot 3.2
Brenda Stern 1.1
Lynda Robison 2.4
Jane Flynn 1.8

the output is:

Probation count: 2


Links to Images of the Source Code For Each of the Files are Given Below:


Course.cpp (Define the CountProbation() function)

https://imgur.com/a/buxMa3D


Course.h (READ ONLY)

https://imgur.com/a/pmiuYpy


Main.cpp (READ ONLY)

https://imgur.com/a/KCX4hWi


Student.h (READ ONLY)

https://imgur.com/a/RCc648B


Student.cpp (READ ONLY)

https://imgur.com/a/wAcYcci


1 Expert Answer

By:

Patrick B. answered • 04/29/21

Tutor
4.7 (31)

Math and computer tutor/teacher

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.