Home » » Gojek Online BSI

Gojek Online BSI



#include<stdio.h>
#include<conio.h>
#include<iostream.h>
int total_gaji(int x,int y  )
{
int total;
return(total=x+y);
}
main()
{
char kd[15],nm[20],alm[20],no[15],bns[10];
int gji,hsl,bgs,Bghs;

cout<<"\t\t\tPROGRAM PENGGAJIAN GO-JEK\n";
cout<<"********************************************\n";
cout<<"Kode Karyawan  :";
cin>>kd;

cout<<"\t\t\tGAJI KARYAWAN GO-JEK\n";
cout<<"*******************************************\n";

if (strcmp(kd,"WH")==32||strcmp(kd,"wh")==0)
{
strcpy(nm,"WILDAN HAKIM");
}
if (strcmp(kd,"SS")==32||strcmp(kd,"ss")==0)
{
strcpy(nm,"SUSWONO");
}
if (strcmp(kd,"oe")==32||strcmp(kd,"OE")==0)
{
strcpy(nm,"OET");
}
cout<<"Kode Karyawan    : "<<kd<<endl;
cout<<"Nama Karyawan    : "<<nm<<endl;
cout<<"Alamat Karyawan  : ";gets(alm);
cout<<"No. HP           : ";cin>>no;
cout<<"*******************************************\n";
cout<<"Gaji Pokok       : ";
cin>>gji;
cout<<"Hasil Gojek      : ";
cin>>hsl;
Bghs=(0.2*hsl);
cout<<"Bagi Hasil       : "<<Bghs<<endl;
if(Bghs>=0)
{
strcpy(bns,"Payung Cantik");
}
else if(Bghs>2000000)
{
strcpy(bns,"Dispenser") ;
}
else if (Bghs>4000000)
{
strcpy (bns,"TV");
}

cout<<"Bonus            : "<<bns<<endl;

cout<<"Total Gaji       : "<<total_gaji( gji,Bghs)<<endl;
getch();
}
Thanks for reading Gojek Online BSI

« Previous
« Prev Post
Next »
Next Post »

0 komentar: