-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsistemPakar.cpp
More file actions
203 lines (184 loc) · 6.58 KB
/
Copy pathsistemPakar.cpp
File metadata and controls
203 lines (184 loc) · 6.58 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
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
#include <iostream>
using namespace std;
main()
{
//variable
char lagi;
int clothes;
int pants;
int footwear;
//method mulai
awal:
cout << "-- Daftar Pakaian --" << endl;
cout << endl;
//Atasan
cout << "-- Atasan Pria --" << endl;
cout << "1.Kemeja" << endl;
cout << "2.Jaket" << endl;
cout << "3.Jas" << endl;
cout << "4.Hoodie" << endl;
cout << "5.Sweater" << endl;
cout << "6.Batik" << endl;
cout << "7.Kaos" << endl;
cout << endl;
cout << "-- Atasan Wanita --" << endl;
cout << "8.Blouse" << endl;
cout << "9.Blazer" << endl;
cout << "10.Daster" << endl;
cout << "11.Dress" << endl;
cout << "Pilih Jenis Kategori [1-11] = ";
cin >> clothes;
cout << "Kamu Memilih : ";
//Menampilkan atasan
switch (clothes)
{
case 1:
cout << "Kemeja" << endl;
break;
case 2:
cout << "Jaket" << endl;
break;
case 3:
cout << "Jas" << endl;
break;
case 4:
cout << "Hoodie" << endl;
break;
case 5:
cout << "Sweater" << endl;
break;
case 6:
cout << "Batik" << endl;
break;
case 7:
cout << "Kaos" << endl;
break;
case 8:
cout << "Blouse" << endl;
break;
case 9:
cout << "Blazer" << endl;
break;
case 10:
cout << "Daster" << endl;
break;
case 11:
cout << "Dress" << endl;
break;
default:
cout << "Tidak terdapat dalam kategori !!" << endl;
}
cout << endl;
//Bawahan
cout << "-- Bawahan --" << endl;
cout << "1.Jeans" << endl;
cout << "2.Trackpants" << endl;
cout << "3.Celana Bahan" << endl;
cout << "4.Celana Pendek" << endl;
cout << "Pilih Jenis Kategori [1-4] = ";
cin >> pants;
cout << "Kamu Memilih : ";
//Menampilkan Bawahan
switch (pants)
{
case 1:
cout << "Jeans" << endl;
break;
case 2:
cout << "Trackpants" << endl;
break;
case 3:
cout << "Celana Bahan" << endl;
break;
case 4:
cout << "Celana Pendek" << endl;
break;
default:
cout << "Tidak terdapat dalam kategori !!" << endl;
}
cout << endl;
//Alas Kaki
cout << "-- Alas Kaki --" << endl;
cout << "1.Sendal" << endl;
cout << "2.Sepatu Pantofel" << endl;
cout << "3.Sepatu Sendal" << endl;
cout << "4.Sepatu Casual" << endl;
cout << "5.Sepatu Sport" << endl;
cout << "Pilih Jenis Kategori [1-5] = ";
cin >> footwear;
cout << "Kamu Memilih : ";
//Menampilkan alas kaki
switch (footwear)
{
case 1:
cout << "Sendal" << endl;
break;
case 2:
cout << "Sepatu Pantofel" << endl;
break;
case 3:
cout << "Sepatu Sendal" << endl;
break;
case 4:
cout << "Sepatu Casual" << endl;
break;
case 5:
cout << "Sepatu Sport" << endl;
break;
default:
cout << "Tidak terdapat dalam kategori !!" << endl;
}
cout << endl;
//Menampilkan kategori yang cocok
cout << " -- Kategori Pakaian -- " << endl;
cout << "Kategori yang kamu pilih cocok untuk : ";
//Pengecekan opsi
if ((clothes == 7 && pants == 4 && footwear == 1) || (clothes == 10 && pants == 4 && footwear == 1))
{
cout << "Pakaian Rumah" << endl;
}
else if ((clothes == 1 && pants == 3 && footwear == 2) || (clothes == 6 && pants == 3 && footwear == 2) || (clothes == 8 && pants == 3 && footwear == 2) || (clothes == 9 && pants == 3 && footwear == 2))
{
cout << "Pakaian Kantor" << endl;
}
else if ((clothes == 1 && pants == 3 && footwear == 2) || (clothes == 3 && pants == 3 && footwear == 2) || (clothes == 6 && pants == 3 && footwear == 2) || (clothes == 9 && pants == 3 && footwear == 2) || (clothes == 11 && pants == 3 && footwear == 2))
{
cout << "Pakaian Pesta" << endl;
}
else if ((clothes == 1 && pants == 1 && footwear == 4) || (clothes == 2 && pants == 1 && footwear == 4) || (clothes == 4 && pants == 1 && footwear == 4) || (clothes == 5 && pants == 1 && footwear == 4) || (clothes == 7 && pants == 1 && footwear == 4) || (clothes == 8 && pants == 1 && footwear == 4))
{
cout << "Pakaian Kuliah" << endl;
}
else if ((clothes == 5 && pants == 2 && footwear == 5) || (clothes == 5 && pants == 4 && footwear == 5) || (clothes == 7 && pants == 2 && footwear == 5) || (clothes == 7 && pants == 4 && footwear == 5))
{
cout << "Pakaian Olahraga" << endl;
}
else if ((clothes == 1 && pants == 1 && footwear == 1) || (clothes == 1 && pants == 1 && footwear == 4) || (clothes == 1 && pants == 4 && footwear == 1) || (clothes == 1 && pants == 4 && footwear == 4) || (clothes == 2 && pants == 1 && footwear == 1) || (clothes == 2 && pants == 1 && footwear == 4) || (clothes == 2 && pants == 4 && footwear == 1) || (clothes == 2 && pants == 4 && footwear == 4) || (clothes == 4 && pants == 1 && footwear == 1) || (clothes == 4 && pants == 1 && footwear == 4) || (clothes == 4 && pants == 4 && footwear == 1) || (clothes == 4 && pants == 4 && footwear == 4) || (clothes == 5 && pants == 1 && footwear == 1) || (clothes == 5 && pants == 1 && footwear == 4) || (clothes == 5 && pants == 4 && footwear == 1) || (clothes == 5 && pants == 4 && footwear == 4) || (clothes == 7 && pants == 1 && footwear == 1) || (clothes == 7 && pants == 1 && footwear == 4) || (clothes == 7 && pants == 4 && footwear == 1) || (clothes == 7 && pants == 4 && footwear == 4) || (clothes == 8 && pants == 1 && footwear == 1) || (clothes == 8 && pants == 1 && footwear == 4) || (clothes == 8 && pants == 4 && footwear == 1) || (clothes == 8 && pants == 4 && footwear == 4))
{
cout << "Pakaian Hangout" << endl;
}
else if ((clothes == 2 && pants == 1 && footwear == 3) || (clothes == 2 && pants == 2 && footwear == 3) || (clothes == 4 && pants == 1 && footwear == 3) || (clothes == 4 && pants == 2 && footwear == 3))
{
cout << "Pakaian Camping" << endl;
}
else
{
cout << "Tidak Terdapat dalam Kategori !!" << endl;
}
cout << endl;
//Mengulang dari awal
cout << "Ingin mengulang kembali ? (Y/N)";
cin >> lagi;
if (lagi == 'y' || lagi == 'Y')
{
goto awal;
}
if (lagi == 'n' || lagi == 'N')
{
goto selesai;
}
//method selesai
selesai:
cout << endl;
return 0;
}