using namespace std;
void main(void)
{
int jml_jam,jam_lembur,jam_normal,rate,gaji;
char gol;
cout<<"Masukan Jumlah Jam:";
cin>>jml_jam;
cout<<"Masukan Golongan (A-D):";
cin>>gol;
if (jml_jam>48)
{
jam_lembur=jml_jam-48;
jam_normal=48;
}
else
{
jam_normal=jml_jam;
jam_lembur=0;
}
switch (gol)
{
case 'A':
rate=4000;
break;
case 'B':
rate=5000;
break;
case 'C':
rate=6000;
break;
case 'D':
rate=7000;
break;
default:
rate=0;
}
if(rate==0)
{
cout<<"salah data"<
else
{
cout<<"Jumlah Jam Normal:"<
cout<<"Total Gaji:"<
}
Tidak ada komentar:
Posting Komentar