Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- class Student {
- public:
- int lectures;
- int test;
- int labs;
- Student(int nm1, int nm2, int nm3) {
- lectures = nm1;
- test = nm2;
- labs = nm3;
- }
- void evaluate() {
- int res = lectures + test + labs;
- if (res >= 33) {
- cout << "Отлично";
- } else if (res >= 28) {
- cout << "Хорошо";
- } else if (res >= 15) {
- cout << "Удовлетворительно";
- }
- else{
- cout << "Неудовлетворительно";
- }
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement