Website Summary Files Commits Branches @commit @diff @stats
path: root / pract_SI / Pract. 10 / task1 / Student.cpp
diff options
context:
space:
mode:
1 files changed, 18 insertions, 0 deletions
-rw-r--r--pract_SI/Pract. 10/task1/Student.cpp18
diff --git a/pract_SI/Pract. 10/task1/Student.cpp b/pract_SI/Pract. 10/task1/Student.cpp
new file mode 100644
index 0000000..06cf89a
--- /dev/null
+++ b/pract_SI/Pract. 10/task1/Student.cpp
@@ -0,0 +1,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;
+} \ No newline at end of file