-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDay.cpp
40 lines (32 loc) · 857 Bytes
/
Day.cpp
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
//Jeff Henebury
//implementation of the Day class
//Day is used to build the Week class
#include "Day.h"
Day::Day()
{
sDayOfWeek = "";
idayOfWeek = 0;
hoursInDay = 2400;
turnOnTime_day = 0;
turnOffTime_day = 0;
turnOnTime_evening = 0;
turnOffTime_evening = 0;
}
Day::~Day()
{
}
inline Day::Day(std::string dayStr, int dayInt)
{
sDayOfWeek = dayStr;
idayOfWeek = dayInt;
hoursInDay = 2400;
turnOnTime_day = 0;
turnOffTime_day = 0;
turnOnTime_evening = 0;
turnOffTime_evening = 0;
}
void Day::printDay() //print the full schedule of the day
{
std::cout << "\nDay: " << sDayOfWeek << "\nAutomatic Turn On Time (Day): " << turnOnTime_day << "\nAutomatic Turn Off Time (Day): " << turnOffTime_day
<<"\nAutomatic Turn On Time (Evening):" << turnOnTime_evening << "\nAutomatic Turn Off Time (Evening):" << turnOffTime_evening << "\n";
}