Posted By

woofeR on 02/15/09


Tagged

get basic display set cpp avarage


Versions (?)

GradeBook.h


 / Published in: C++
 

  1. #include <cstdlib>
  2. #include <iostream>
  3.  
  4. using namespace std;
  5.  
  6. class GradeBook{
  7. public:
  8. //displays given course number
  9. void displayMessage(int no);
  10.  
  11. //displays the course number which is set by setCourseNo
  12. void displayMessage();
  13.  
  14. //sets the course number
  15. void setCourseNo(int no);
  16.  
  17. //ordinary get method
  18. int getCourseNo();
  19.  
  20. // determines the average of grades entered by the user
  21. // until a negative grade is entered
  22. double determineCourseAverage();
  23.  
  24. private:
  25. int courseNo;
  26. };

Report this snippet  

You need to login to post a comment.