Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ProfessorRating
- {
- private int _professorID;
- private double _helpfullness;
- private double _clarity;
- private double _Easiness;
- public double Helpfullness{get;set;}
- public double Clarity { get; set; }
- public double Easiness { get; set; }
- public int ProfessorID { get; private set; }
- public void helpRating(double hlpRating)
- {
- Helpfullness += hlpRating;
- }
- public void clarRating(double clrRating)
- {
- Clarity += clrRating;
- }
- public void easeRating(double ezRating)
- {
- Easiness += ezRating;
- }
- double rating = 0;
- private void totalRating()
- {
- rating += (easeRating() + clarRating + helpRating);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement