C++ Penghitung Gaji
Posted on 13.04 by Unknown
/*program penghitung gaji karyawan*/
#include<iostream.h>
void main()
{
float gapok, tunjangan, pajak, gaji;
char nama[30],bagian[30];
cout<<"PENGHITUNG GAJI BERSIH KARYAWAN"<<endl;
cout<<" ---PT.PAZILER CORPORATION---"<<endl;
cout<<"-------------------------------"<<endl;
cout<<"Siapa Nama Anda :";cin>>nama;
cout<<"Bagian Anda :";cin>>bagian;
cout<<"Berapa Gaji Pokok Anda :";cin>>gapok;
cout<<"________________________"<<endl;
tunjangan=gapok*0,2;
pajak =(gapok + tunjangan) * 0.15;
gaji = gapok + tunjangan - pajak;
cout<<"Nama Anda ="<<nama<<endl;
cout<<"Bagian ="<<bagian<<endl;
cout<<"Gaji Pokok ="<<gapok<<endl;
cout<<"Tunjangan ="<<tunjangan<<endl;
cout<<"Pajak ="<<pajak<<endl;
cout<<"------------"<<endl;
cout<<"Gaji Bersih="<<gaji<<endl;
}
Categories: Cplusplus
Langganan:
Posting Komentar (Atom)
0 komentar:
Posting Komentar