-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCustomer.cpp
More file actions
85 lines (69 loc) · 1.4 KB
/
Customer.cpp
File metadata and controls
85 lines (69 loc) · 1.4 KB
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
#include"Customer.h"
#include<iostream>
using std::cin;
using std::cout;
namespace example
{
int Customer::hotel_id_counter=100;
Customer::Customer()
{
hotel_id=hotel_id_counter++;
}
void Customer::fill_customer_details()
{
cout<<"\n Enter your name : ";
cin>>name;
cout<<"\n Enter you phone number : ";
cin>>phone;
cout<<"\n Enter check in date (dd/mm/yyyy): ";
cin>>check_in_date;
cout<<"\n Enter check out date (dd/mm/yyyy): ";
cin>>check_out_date;
cout<<"\n Enter no. of days : ";
cin>>days;
cout<<"\n Enter id proof : ";
cin>>id_proof;
}
int Customer::get_days()
{
return days;
}
string Customer::get_name()
{
return name;
}
string Customer::get_phone()
{
return phone;
}
string Customer::get_check_in_date()
{
return check_in_date;
}
string Customer::get_check_out_date()
{
return check_out_date;
}
int Customer::get_hotel_id()
{
return hotel_id;
}
void Customer::displayCustomerDetails()
{
cout<<"\n-------------CUSTOMER DETAILS--------------";
cout<<"\n Hotel ID: "<<hotel_id;
cout<<"\n Customer Name: "<<name;
cout<<"\n Phone Number: "<<phone;
cout<<"\n Check in date: "<<check_in_date;
cout<<"\n Check out date: "<<check_out_date;
cout<<"\n Number of days: "<<days;
}
void Customer::pay_bill()
{
cin>>bill;
}
int Customer::bill_paid()
{
return bill;
}
}