SEMANGAT BELAJAR DAN SEMANGAT MEMBUAT PROGRAM.
#include <iostream.h>
#include <stdio.h>
#include <conio.h>
#include <iomanip.h>
//header
//MALAY 13160566
void header1()
{
cout<<"\t\tProgram Hitung Honor Karyawan Kontrak\n"<<endl;
cout<<"\t\t\t MALAY COOL"<<endl;
}
void garis()
{
cout<<"-------------------------------------------------------------------------"<<endl;
}
void header2()
{
cout<<"\t\t\t MALAY COOL"<<endl;
}
//malay 13160566
//coding utama
void main()
{
int jum,i,jml;
char nama[100][10];
char gol[100],ulang;
long pajak[100],juker[100],tunjab[100],hlembur[100],lemburjam[100],bersih[100];
lanjut:
clrscr();
header1();
garis();
cout<<endl;
//input data
cout<<"Masukan Jumlah Karyawan : ";cin>>jum;
cout<<endl<<endl;
//data ulang
for(i=1;i<=jum;i++)
{
clrscr();
cout<<"\t\tProgram Hitung Honor Karyawan Kontrak\n"<<endl;
cout<<"\t\t\t MALAY COOL"<<endl;
garis();
cout<<"Karyawan Ke "<<jum<<endl;
cout<<"\nNama Karyawan : ";gets(nama[i]);
cout<<"\nGolongan Karyawan [1/2/3] : ";cin>>gol[i];
cout<<"\nJumlah Jam Kerja : ";cin>>juker[i];
//data
if(gol[i]=='1')
{
tunjab[i]=0.05*700000;
}
else if(gol[i]=='2')
{
tunjab[i]=0.10*700000;
}
else if(gol[i]=='3')
{
tunjab[i]=0.15*700000;
}
}
clrscr();
//tampilan data
header2();"\n\n";
garis();
cout<<"No. Nama Tunjangan"<<endl;
cout<<" Karyawan Jabatan Honor Pendapatan"<<endl;
cout<<" Lembur Pajak Bersih"<<endl;
garis();
for(i=1;i<=jum;i++)
{
if(juker[i]<=240)
hlembur[i]=0;
if(juker[i]>240)
hlembur[i]=(juker[i]-240)*2500;
}
for(i=1;i<=jum;i++){
pajak[i]=(700000+tunjab[i]+hlembur[i])*0.1;
bersih[i]=(700000+tunjab[i]+hlembur[i]-pajak[i]);
jml=jml+bersih[i];}
for(i=1;i<=jum;i++)
{
cout<<" "<<setiosflags(ios::left)<<setw(6)<<i;
cout<<setiosflags(ios::left)<<setw(1)<<nama[i]<<endl;
cout<<setiosflags(ios::right)<<setw(31)<<tunjab[i]<<endl;
cout<<setiosflags(ios::right)<<setw(45)<<hlembur[i]<<endl;
cout<<setiosflags(ios::right)<<setw(54)<<pajak[i]<<endl;
cout<<setiosflags(ios::right)<<setw(65)<<bersih[i]<<endl;
}
cout<<"-------------------------------------------------------------------------"<<endl;
cout<<setiosflags(ios::right)<<setw(67)<<"Total Gaji Yang Dikeluarkan = Rp."<<jml<<endl;
cout<<"\n\nIngin Input Lagi[Y/T] ";cin>>ulang;
if(ulang=='Y'||ulang=='y')
{
goto lanjut;
}
getch();
}
note :Kuncinya jangan pernah malas baca dan Berusaha, di dunia ini tak ada Ilmu yang tak terlihat.!!
Harrah's Resort Atlantic City - MapyRO
BalasHapusFind 남원 출장마사지 Harrah's 세종특별자치 출장샵 Resort 광주광역 출장마사지 Atlantic City, 춘천 출장마사지 revenue, industry 상주 출장샵 and