Website Summary Files Commits Branches @commit @diff @stats
path: root / pract_SI / Pract. 10 / task1 / Student.cpp
blob: 06cf89a2f6c9c7fd7d93de36be3a02d5f5e73582 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "pch.h"
#include "Student.h"
#include <iostream>

float Student::calculateFinalGrade() //среден успех за годината.
{
	return (GradeFirstTerm + GradeSecondTerm) / 2;
}

bool Student::checkBirthdate(unsigned _year) // роден преди определена година.
{
	return year < _year;
}

void Student::enterData()
{
	std::cin >> name >> adress >> year >> GradeFirstTerm >> GradeSecondTerm;
}