#include <iostream>
#include <string>
using namespace std;
int main() {
string nama = "Nagita";
char kodeKaryawan = 'B';
cout << "----------------------------------------------------"<< endl;
cout << "Kode | Posisi | Gaji |"<< endl;
cout << "----------------------------------------------------"<< endl;
cout << "A | QA Engineer | 6.000.000 |"<< endl;
cout << "B | FE Engineer | 7.000.000 |"<< endl;
cout << "C | BE Engineer | 8.000.000 |"<< endl;
cout << "----------------------------------------------------"<< endl;
cout << "\n----------------------------------------------------"<< endl;
cout << "\t\tData Karyawan PT ABC "<< endl;
cout << "----------------------------------------------------"<< endl;
cout << "Masukan Nama Anda \t: " << endl;
cout << "Kode Karyawan [A/B/C] \t: " << endl;
printf ("Kode Yang Dipilih \t: %c\n", kodeKaryawan);
cout << "-----------------------------------------------------"<< endl;
cout << "\t\tHasil Switch Case " << endl;
cout << "-----------------------------------------------------"<< endl;
cin >> nama;
string posisi;
int gaji;
switch (kodeKaryawan) {
case 'A':
posisi = "QA Engineer";
gaji = 6000000;
break;
case 'B':
posisi = "FE Engineer";
gaji = 7000000;
break;
case 'C':
posisi = "BE Engineer";
gaji = 8000000;
break;
default:
posisi = "Tidak Ditemukan";
gaji = 0;
}
cout << "Halo selamat datang " << nama << endl;
cout << "Kode yang kamu pilih adalah " << kodeKaryawan << endl;
cout << "Untuk kode " << kodeKaryawan << " maka posisi kamu adalah " << posisi << endl;
cout << "Dengan posisi " << posisi << " maka gaji kamu adalah " << gaji << " juta perbulan." << endl;
cout << "-----------------------------------------------------------------------" << endl;
return 0;
}