/ Published in: C++
Expand |
Embed | Plain Text
#include <cstdlib> #include <iostream> using namespace std; class GradeBook{ public: //displays given course number void displayMessage(int no); //displays the course number which is set by setCourseNo void displayMessage(); //sets the course number void setCourseNo(int no); //ordinary get method int getCourseNo(); // determines the average of grades entered by the user // until a negative grade is entered double determineCourseAverage(); private: int courseNo; };
You need to login to post a comment.
