-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
114 lines (109 loc) · 3.75 KB
/
main.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
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
#include <iostream>
/**
Author : @zoelabbb
Tools : Pembayaran Travel Agent
Version : V.0.1 --> Using nested if
Telegram : https://t.me/domicadoesca
Find My Repository : https://github.com/zoelabbb?tab=repositories
**/
using namespace std;
int main()
{
string nama_petugas, nama_customer, tujuan_wisata, kode_grup, JG, MN, BT;
string F, C, BA, tanggal_keberangkatan;
int harga, harga_bagi, ppn;
cout << " TRAVEL AGEN PASTI NYAMAN " << endl;
cout << " Input Nama Petugas : ";
cin >> nama_petugas;
cout << " Input Nama Customer : ";
cin >> nama_customer;
cout << " Pilih kode tujuan wisata [JG/MN/BT] : ";
cin >> tujuan_wisata;
cout << " Pilih kode grup [F/C] : ";
cin >> kode_grup;
cout << " Tanggal keberangkatan : ";
cin >> tanggal_keberangkatan;
cout << endl;
cout << " BUKTI PEMESANAN PAKET LIBURAN " << endl;
cout << " TRAVEL AGEN PASTI NYAMAN " << endl;
cout << "=================================================================" << endl;
cout << " Nama Petugas : " << nama_petugas << endl;
cout << " Nama Customer : " << nama_customer << endl;
cout << " Tanggal keberangkatan : " << tanggal_keberangkatan << endl;
cout << "=================================================================" << endl;
//Tujuan wisata
if(tujuan_wisata == "JG" | tujuan_wisata == "jg")
{
cout << " Tujuan Wisata : JOGJAKARTA " << endl;
}else if(tujuan_wisata == "MN" | tujuan_wisata == "mn")
{
cout << " Tujuan Wisata : MANADO " << endl;
}else if(tujuan_wisata == "BT" | tujuan_wisata == "bt")
{
cout << " Tujuan Wisata : BATAM " << endl;
}
//Paket Wisata
if(kode_grup == "F" | kode_grup == "f")
{
cout << " Paket Wisata : Family" << endl;
}else if(kode_grup == "C" | kode_grup == "c")
{
cout << " Paket Wisata : Company" << endl;
}
//Harga
if(tujuan_wisata == "JG" && kode_grup == "F")
{
cout << " Harga : 1500000 " << endl;
}else if(tujuan_wisata == "JG" && kode_grup == "C")
{
cout << " Harga : 3000000 " << endl;
}else if(tujuan_wisata == "MN" && kode_grup == "C")
{
cout << " Harga : 7500000 " << endl;
}else if(tujuan_wisata == "MN" && kode_grup == "F")
{
cout << " Harga : 4500000 " << endl;
}else if(tujuan_wisata == "BT" && kode_grup == "C")
{
cout << " Harga : 8000000 " << endl;
}else if(tujuan_wisata == "MN" && kode_grup == "F")
{
cout << " Harga : 5000000 " << endl;
}
//Biaya akomodasi
cout << " Biaya Akomodasi : ";
cin >> BA;
//Total biaya
if(tujuan_wisata == "JG" && kode_grup == "F" && BA == "5")
{
ppn = 1500000 * 5 / 100;
harga = 1500000 + ppn;
cout << " Total biaya : " << harga << endl;
}else if(tujuan_wisata == "JG" && kode_grup == "C" && BA == "10")
{
ppn = 3000000 * 10 / 100;
harga = 3000000 + ppn;
cout << " Total biaya : " << harga << endl;
}else if(tujuan_wisata == "MN" && kode_grup == "C" && BA == "5")
{
ppn = 7500000 * 5 / 100;
harga = 7500000 + ppn;
cout << " Total biaya : " << harga << endl;
}else if(tujuan_wisata == "MN" && kode_grup == "F" && BA == "15")
{
ppn = 4500000 * 15 / 100;
harga = 4500000 + ppn;
cout << " Total biaya : " << harga << endl;
}else if(tujuan_wisata == "BT" && kode_grup == "C" && BA == "5")
{
ppn = 8000000 * 5 / 100;
harga = 8000000 + ppn;
cout << " Total biaya : " << harga << endl;
}else if(tujuan_wisata == "MN" && kode_grup == "F" && BA == "10")
{
ppn = 5000000 * 10 / 100;
harga = 5000000 + ppn;
cout << " Total biaya : " << harga << endl;
}
return 0;
}