|
| 1 | +#include <iostream> |
| 2 | +#include <vector> |
| 3 | +using namespace std; |
| 4 | +#include "Lesson.h" |
| 5 | +#include "Exam.h" |
| 6 | +#include "BankCard.h" |
| 7 | +#include "Bank.h" |
| 8 | +#include "Student.h" |
| 9 | +#include "Group.h" |
| 10 | +#include "Teachers.h" |
| 11 | +#include "Univeristy.h" |
| 12 | + |
| 13 | + |
| 14 | +int main(){ |
| 15 | + Student s1{ "Jenette","Blankenship","Design",59,88,BankCard{"4716 7757 8328 8949",1321,148,7,24}}; |
| 16 | + Student s2{ "Ina","Holden","Design",78,130,BankCard{"4024 0071 4787 4553",1001,294,7,24}}; |
| 17 | + Student s3{ "Honorato","Marquez","Economics",89,150,BankCard{"4532 2516 6717 2585",7945,357,9,25}}; |
| 18 | + Student s4{ "Shana","Vaughan","Economics",95,150,BankCard{"4539 3422 9636 5287",1478,541,9,25}}; |
| 19 | + Student s5{ "Zephania","Bean","IT",68,88,BankCard{"4485 6539 9544 6853",7531,109,3,28}}; |
| 20 | + Student s6{ "Phyllis","Durham","IT",74,130,BankCard{"4156 5731 2153 2889",9851,55,3,28}}; |
| 21 | + Exam e1{ "12.1.2022",88,Lesson{"History of Design"} }; |
| 22 | + Exam e2{ "18.3.2022",67,Lesson{"Design programmesign"} }; |
| 23 | + Exam e3{ "27.4.2022",95,Lesson{"Economic Theory"} }; |
| 24 | + Exam e4{ "04.5.2021",25,Lesson{"Macro Economic"} }; |
| 25 | + Exam e5{ "01.2.2021",100,Lesson{"IT"} }; |
| 26 | + Exam e6{ "22.11.2021",78,Lesson{"Programming language - Python"} }; |
| 27 | + s1.getExams().push_back(e1); |
| 28 | + s2.getExams().push_back(e2); |
| 29 | + s3.getExams().push_back(e3); |
| 30 | + s4.getExams().push_back(e4); |
| 31 | + s5.getExams().push_back(e5); |
| 32 | + s6.getExams().push_back(e6); |
| 33 | + |
| 34 | + Group g1("Group 1"); |
| 35 | + g1.getStudents().push_back(s1); |
| 36 | + g1.getStudents().push_back(s2); |
| 37 | + |
| 38 | + g1.getLessons().push_back(Lesson{"History of Design"}); |
| 39 | + g1.getLessons().push_back(Lesson{"Design programmes"}); |
| 40 | + |
| 41 | + Group g2("Group 2"); |
| 42 | + g2.getStudents().push_back(s3); |
| 43 | + g2.getStudents().push_back(s4); |
| 44 | + |
| 45 | + g2.getLessons().push_back(Lesson{ "Economic Theory" }); |
| 46 | + g2.getLessons().push_back(Lesson{ "Macro Economic" }); |
| 47 | + |
| 48 | + Group g3("Group 3"); |
| 49 | + g3.getStudents().push_back(s5); |
| 50 | + g3.getStudents().push_back(s6); |
| 51 | + |
| 52 | + g3.getLessons().push_back(Lesson{"IT Essentials"}); |
| 53 | + g3.getLessons().push_back(Lesson{"Programming language - Python"}); |
| 54 | + |
| 55 | + |
| 56 | + Teacher t1("Ulric", "Booth", 27, "History", 980, BankCard{ "4522 4332 3488 1557",1463, 2198, 12, 2055 }); |
| 57 | + t1.getGroups().push_back(g1); |
| 58 | + |
| 59 | + Teacher t2("MacKenzie", "Higgins", 45, "History", 900, BankCard{ "4485 7678 7347 1617", 7913, 1240, 8, 2042}); |
| 60 | + t2.getGroups().push_back(g1); |
| 61 | + |
| 62 | + Teacher t3("Ferdinand", "Phelps", 54, "Economics", 1200, BankCard{ "4716 3549 7473 5157", 7319, 3746, 4 ,2028}); |
| 63 | + t3.getGroups().push_back(g2); |
| 64 | + |
| 65 | + Teacher t4("Lillith", "Crosby", 37, "Economics", 1500, BankCard{ "4716 8677 5177 9577", 1346, 4000, 10, 2045 }); |
| 66 | + t4.getGroups().push_back(g2); |
| 67 | + |
| 68 | + Teacher t5("Sylvester", "Guzman", 24, "IT", 1400, BankCard{ "4929 8456 1484 4633", 1752,2500, 7 ,2058 }); |
| 69 | + t5.getGroups().push_back(g3); |
| 70 | + |
| 71 | + Teacher t6("Valentine", "Eaton", 30, "Programming", 2100, BankCard{ "4376 6576 3863 1955", 1973, 8400, 8, 2052}); |
| 72 | + t6.getGroups().push_back(g3); |
| 73 | + |
| 74 | + |
| 75 | + |
| 76 | + Bank bank("Unibank", "Settar Behlulzade","****"); |
| 77 | + bank.getBankcards().push_back(s1.getBankcard()); |
| 78 | + bank.getBankcards().push_back(s2.getBankcard()); |
| 79 | + bank.getBankcards().push_back(s3.getBankcard()); |
| 80 | + bank.getBankcards().push_back(s4.getBankcard()); |
| 81 | + bank.getBankcards().push_back(s5.getBankcard()); |
| 82 | + bank.getBankcards().push_back(s6.getBankcard()); |
| 83 | + bank.getBankcards().push_back(t1.getBankcard()); |
| 84 | + bank.getBankcards().push_back(t2.getBankcard()); |
| 85 | + bank.getBankcards().push_back(t3.getBankcard()); |
| 86 | + bank.getBankcards().push_back(t4.getBankcard()); |
| 87 | + bank.getBankcards().push_back(t5.getBankcard()); |
| 88 | + bank.getBankcards().push_back(t6.getBankcard()); |
| 89 | + |
| 90 | + Univeristy university("BDU","Yasamal"); |
| 91 | + university.getStudents().push_back(s1); |
| 92 | + university.getStudents().push_back(s2); |
| 93 | + university.getStudents().push_back(s3); |
| 94 | + university.getStudents().push_back(s4); |
| 95 | + university.getStudents().push_back(s5); |
| 96 | + university.getStudents().push_back(s6); |
| 97 | + |
| 98 | + university.getTeachers().push_back(t1); |
| 99 | + university.getTeachers().push_back(t2); |
| 100 | + university.getTeachers().push_back(t3); |
| 101 | + university.getTeachers().push_back(t4); |
| 102 | + university.getTeachers().push_back(t5); |
| 103 | + university.getTeachers().push_back(t6); |
| 104 | + |
| 105 | + |
| 106 | + |
| 107 | + cout << "University: " << university.getName() << endl; |
| 108 | + cout << "Location: " << university.getLocation() << endl; |
| 109 | + cout << "University score: " << university.getUniversityscore() << endl; |
| 110 | + cout << "All payment: " << university.getPayment() << endl; |
| 111 | + university.showAllstudents(); |
| 112 | + university.showAllteachers(); |
| 113 | + cout << "Bank info " << endl; |
| 114 | + cout << "Name: " << bank.getName() << endl; |
| 115 | + cout << "Location: " << bank.getLocation() << endl; |
| 116 | + cout << "Popularity: " << bank.getPopularity() << endl; |
| 117 | + |
| 118 | +} |
| 119 | + |
0 commit comments