forked from matkatmusic/PFMCPP_Project5
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStudioComplex.cpp
More file actions
31 lines (26 loc) · 973 Bytes
/
Copy pathStudioComplex.cpp
File metadata and controls
31 lines (26 loc) · 973 Bytes
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
#include <iostream>
#include "StudioComplex.h"
StudioComplex::StudioComplex()
{
std::cout << "Studio Complex being constructed." << std::endl;
}
StudioComplex::~StudioComplex()
{
std::cout << "Studio Complex being deconstructed." << std::endl;
placeAdvertisement("ADVERTISEMENT: STUDIO FOR SALE!!!!");
}
int StudioComplex::bookSession(const ControlRoom& controlRoom, const LiveRoom& liveRoom, int hours) const
{
std::cout << "Booking " << controlRoom.name << " with " << liveRoom.name << " for " << hours << " hours" << std::endl;
return hours;
}
int StudioComplex::prepareInvoice(const ControlRoom& controlRoom, const LiveRoom& liveRoom, int hours, int rate) const
{
int cost = hours * rate;
std::cout << controlRoom.name << " with " << liveRoom.name << " fee is " << cost << " dollars" << std::endl;
return cost;
}
void StudioComplex::placeAdvertisement(std::string text) const
{
std::cout << text << std::endl;
}