61 lines
1.7 KiB
C++
61 lines
1.7 KiB
C++
|
using namespace std;
|
||
|
|
||
|
#include "person.h"
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
void person::get_latedays() {
|
||
|
|
||
|
cout << "Please enter if it was turned in earlier or late (earlier with a negative number): " << endl;
|
||
|
cin >> late_days;
|
||
|
total_latedays = total_latedays + late_days;
|
||
|
}
|
||
|
|
||
|
void person::get_exam_latedays(){
|
||
|
cout << "Please enter if it was turned in in late (number of late days): " << endl;
|
||
|
cin >> late_days_exam;
|
||
|
late_days_exam = abs(late_days_exam);
|
||
|
total_latedays_exam = total_latedays_exam + late_days_exam;
|
||
|
}
|
||
|
|
||
|
void person::calculate_grade() {
|
||
|
|
||
|
grade = lab1 + lab2 + lab3 + lab4 + lab5 + lab6 + lab7 + lab8 + lab9 + lab10 + lab11 + exam1 + exam2 + final;
|
||
|
}
|
||
|
|
||
|
|
||
|
void person::get_grades(){
|
||
|
|
||
|
cout << "please enter the name of the student: " << endl;
|
||
|
cout << "now we are going to enter the following grades for the student: " << endl;
|
||
|
cout << "Grade for lab 01: " << endl;
|
||
|
cin >> lab1;
|
||
|
cout << "Grade for lab 02; " << endl;
|
||
|
cin >> lab2;
|
||
|
cout << "Grade for lab 03; " << endl;
|
||
|
cin >> lab3;
|
||
|
cout << "Grade for lab 04; " << endl;
|
||
|
cin >> lab4;
|
||
|
cout << "Grade for lab 05; " << endl;
|
||
|
cin >> lab5;
|
||
|
cout << "Grade for lab 06; " << endl;
|
||
|
cin >> lab6;
|
||
|
cout << "Grade for lab 07; " << endl;
|
||
|
cin >> lab7;
|
||
|
cout << "Grade for lab 08; " << endl;
|
||
|
cin >> lab8;
|
||
|
cout << "Grade for lab 09; " << endl;
|
||
|
cin >> lab9;
|
||
|
cout << "Grade for lab 10; " << endl;
|
||
|
cin >> lab10;
|
||
|
cout << "Grade for lab 11; " << endl;
|
||
|
cin >> lab11;
|
||
|
cout << "Grade for exam 1: " << endl;
|
||
|
cin >> exam1;
|
||
|
cout << "Grade for exam 2: " << endl;
|
||
|
cin >> exam2;
|
||
|
cout << "Grade for final: " << endl;
|
||
|
cin >> final;
|
||
|
cout << "Please enter how many days late the final was: " << endl;
|
||
|
}
|