#include<iostream>
#include<cstdlib>
#include<iomanip>
using namespace std;
int main()
{
int gaji,tunj,tran,lem,komp,jams,spsi,inf,paj,lem2,lem5,lem7,x,y,z,a,lemtot,gajitot,transtot;
gaji=2700522;
tunj=200000;
tran= 10500;
komp=31600;
lem2=gaji/173*3.5;
lem5=(gaji/173*9.5)+komp;
lem7=(gaji/173*14);
cout<<endl;
cout<<"\t\t\tTOTAL GAJI BULANAN KARYAWAN"<<endl<<endl;
cout<<"================================================================================"<<endl;
cout<<endl;
cout<<"Gaji kamu bulan ini adalah \t:"<<endl;
cout<<"Banyak lembur 2 jam\t\t: ";cin>>x;
cout<<"Banyak lembur 5 jam\t\t: ";cin>>y;
cout<<"Banyak lembur 7 jam\t\t: ";cin>>a;
lemtot=(lem2*x)+(lem5*y)+(lem7*a);
cout<<"Uang lembur \t\t\t: Rp."<<lemtot<<endl;
cout<<"Hari masuk\t\t\t: ";cin>>z;
transtot=tran*z;
cout<<"Uang transport\t\t\t: Rp."<<transtot<<endl;
cout<<endl;
gajitot=gaji+tunj+transtot+lemtot;
cout<<"================================================================================"<<endl;
cout<<"GAJIKU BULAN INI\t\t: Rp."<<gajitot<<endl;
cout<<endl<<endl<<endl;
cout<<"GAJI BELUM TERMASUK POTONGAN "<<endl;
cout<<endl;
system("pause");
}
Outputnya :
Tidak ada komentar:
Posting Komentar