-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathSubCampuses.h
90 lines (89 loc) · 2.63 KB
/
SubCampuses.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#pragma once
#include"Manager.h"
#include<iostream>
#include<vector>
using namespace std;
class SubCampuses:public Manager
{
public:
SubCampuses()=default;
~SubCampuses()=default;
void set_campus_id(int);
void set_campus_name(string);
void set_campus_decription(string);
void setCampusAddress(string);
void setCampusCoordinator(string name,float salary,int id,string address,string email,float monthlyBudget);
void setCampusArea(float);
int get_campus_id(int);
string get_campus_name(int);
string get_campus_decription(int);
string getCampusAddress(int);
float getCampusArea(int);
//Show campus details
void ShowCampusCoordinatorDetails(int);
private:
vector<int> campus_id;
vector<string> campus_name;
vector<string> campus_description;
vector<string> campus_address;
vector<float> campus_area;
Manager manager;
};
void SubCampuses::set_campus_id(int id)
{
campus_id.push_back(id);
}
void SubCampuses::set_campus_name(string name)
{
campus_name.push_back(name);
}
void SubCampuses::setCampusCoordinator(string name, float salary,
int id, string address, string email,float monthlyBudget)
{
manager.set_Manager_Name(name);
manager.set_manager_id(id);
manager.set_monthly_budget(monthlyBudget);
manager.set_manager_address(address);
manager.setManagerEmail(email);
manager.setManagerSalary(salary);
}
void SubCampuses::set_campus_decription(string campusDescription)
{
this->campus_description.push_back(campusDescription);
}
void SubCampuses::setCampusAddress(string adress)
{
this->campus_address.push_back(adress);
}
void SubCampuses::setCampusArea(float a)
{
this->campus_area.push_back(a);
}
void SubCampuses::ShowCampusCoordinatorDetails(int index)
{
cout << "\nThe manager id of Sub Campus " << campus_name[index]<<" is equal to "<<get_manager_id(index);
cout << "\nThe manager name of Sub Campus " << campus_name[index] << " is equal to "<<get_manager_name(index);
cout << "\nThe manager budget of Sub Campus " <<campus_name[index] << " is equal to "<<get_monthly_budget(index);
cout << "\nThe manager email of Sub Campus " << campus_name[index] << " is equal to "<<get_manager_email(index);
cout << "\nThe manager address of Sub Campus " << campus_name[index] << " is equal to "<<get_manager_address(index);
}
int SubCampuses::get_campus_id(int index)
{
return this->campus_id[index];
}
string SubCampuses::get_campus_name(int index)
{
return this->campus_name[index];
}
string SubCampuses::get_campus_decription(int index)
{
return this->campus_description[index];
}
string SubCampuses::getCampusAddress(int index)
{
return this->campus_address[index];
}
float SubCampuses::getCampusArea(int index)
{
return this->campus_area[index];
}