Advertisement
Guest User

Untitled

a guest
May 26th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. class ProfessorRating
  2. {
  3. private int _professorID;
  4. private double _helpfullness;
  5. private double _clarity;
  6. private double _Easiness;
  7.  
  8. public double Helpfullness{get;set;}
  9. public double Clarity { get; set; }
  10. public double Easiness { get; set; }
  11. public int ProfessorID { get; private set; }
  12.  
  13. public void helpRating(double hlpRating)
  14. {
  15. Helpfullness += hlpRating;
  16. }
  17.  
  18. public void clarRating(double clrRating)
  19. {
  20. Clarity += clrRating;
  21. }
  22.  
  23. public void easeRating(double ezRating)
  24. {
  25. Easiness += ezRating;
  26. }
  27.  
  28. double rating = 0;
  29. private void totalRating()
  30. {
  31. rating += (easeRating() + clarRating + helpRating);
  32. }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement