-
Notifications
You must be signed in to change notification settings - Fork 0
/
reservation.h
74 lines (61 loc) · 1.35 KB
/
reservation.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
/*
File Name : reservation.h
Description :
Author : Garly Nugraha & Nazwa Fitriyani Zahra
Date : 08/12/2001
*/
#ifndef reservation_H
#define reservation_H
/* Struct Rent Room */
typedef struct {
int Code;
char Name[20];
int Quantity;
long int Price;
}RentRoom;
/* Struct Date */
typedef struct{
int Day;
int Month;
int Year;
}Date;
/* Struct Reservation */
typedef struct {
int ReservationCode;
char NIN[16];
char FullName[40];
char Email[60];
char Gender[10];
int Age;
RentRoom RentRoomData;
int LongStay;
Date CheckInDate;
Date CheckOutDate;
long int Total;
int Discount;
long int GrandTotal;
Date ReservationDate;
char Status[15];
}Reservation;
/* Menu Reservation */
int ReservationMenu();
/* Create Data Reservation */
void ReservationCreate();
/* Count Data Reservation */
void CountReservationData();
/* Show Data Reservation */
void ReservationData();
/* Read Data Reservation */
void ReservationRead();
/* Check Data Reservation by Code */
int CheckReservationCode(Reservation ReservationData, int ID);
/* Update Data Reservation */
void ReservationUpdate();
void UpdateReservationStatus();
/* Delete Data Reservation */
void ReservationDelete();
void AlertDeleteOneReservationData();
void DeleteOneReservationData(Reservation ReservationData, int ID);
void AlertDeleteAllReservationData();
void DeleteAllReservationData();
#endif