-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAssignment3.cpp
30 lines (26 loc) · 1 KB
/
Assignment3.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
//===================================================================================================
// Name : Assignment3.cpp
// Author : Beverly ACKAH
// Description : BarberShop App in C++.
// Program to manage waiting lines and to process customers in the same order they arrive
//====================================================================================================
#include "BarberShop.h"
#include "Customer.h"
#include <iostream>
using namespace std;
int main() {
BarberShop shop;
Customer customer1("MARK","KILGORE");
Customer customer2("RICK","GRIMM");
shop.addCustomer(customer1);
shop.addCustomer(customer2);
Customer nextCustomer = shop.nextCustomer();
cout<<nextCustomer.getName()<<" is served next"<<endl;
Customer customer3("JILL","WOLFF");
shop.addCustomer(customer3);
nextCustomer = shop.nextCustomer();
cout<<nextCustomer.getName()<<" is served next"<<endl;
nextCustomer = shop.nextCustomer();
cout<<nextCustomer.getName()<<" is served next"<<endl;
return 0;
}