-
Notifications
You must be signed in to change notification settings - Fork 0
/
pembayaran.cpp
48 lines (44 loc) · 937 Bytes
/
pembayaran.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
#include <iostream>
using namespace std;
int main()
{
system("cls");
int pilih, bayar;
string status;
cout << "=== Menu Pilihan ===\n";
cout << "1. Dosen\n";
cout << "2. Mahasiswa\n";
cout << "3. Umum\n";
cout << "=====================\n";
cout << "Masukkan Pilihan [1/2/3]: ";
cin >> pilih;
if (pilih == 1)
{
status = "Dosen";
bayar = 50000;
cout << endl;
}
else if (pilih == 2)
{
status = "Mahasiswa";
bayar = 75000;
cout << endl;
}
else if (pilih == 3)
{
status = "Umum";
bayar = 100000;
cout << endl;
}
else
{
status = "-";
bayar = 0;
cout << endl;
cout << "Input Yang Anda Masukkan Salah!!!\n";
}
cout << "Status Anda : " << status << endl;
cout << "Pembayaran : Rp." << bayar << endl;
system("pause");
return 0;
}