#include<iostream.h>
#include<conio.h>
void main()
{
int pokok,uas,raya,pinjam,bank;
float x,y,z,a;
float bersih;
cout<<"---GAJI---PEGAWAI---"<<endl;
cout<<"*) Gaji pokok : Rp ";
cin>>pokok;
cout<<endl;
cout<<"--------------------"<<endl;
cout<<"*) Tunjangan : "<<endl;
cout<<" a) pembuatan soal uas : Rp ";
cin>>uas;
cout<<endl;
cout<<" b) tunjangan Hari raya : Rp ";
cin>>raya;
cout<<endl;
cout<<" c) : Rp ";
cout<<endl;
x=pokok+uas+raya;
cout<<"*) Photongan : "<<endl;
cout<<" 1) pinjaman koperasi : Rp ";
cin>>pinjam;
cout<<endl;
y=pinjam*2/100;
cout<<" bunga 5%: "<<endl;
cout<<" 2) pinjaman bank : Rp ";
cin>>bank;
cout<<" bunga 1%: "<<endl;
cout<<endl;
z=bank*1/100;
a=pinjam+y+bank+z;
bersih=x-a;
cout<<"*) Gaji bersih : Rp "<<bersih;
getch();
}


05.57
dwi yuda pranata

0 komentar:
Posting Komentar