Selamat datang di maiav3.blogspot.com => Blog "TANPO ASMO"

SCRIPT C++_MENGHITUNG GAJI

Jumat, 18 Januari 20130 komentar


//Program Menghitung Gaji Karyawan
//created by maiaachiea

#include <iostream.h>
#include <conio.h>
#include <math.h>
#include <stdio.h>

void main () {

char nip [50], nama [50], jumlah_hari_kerja [50];
int gaji_pokok= 50.000, hari, total_gaji;
float pph= 0.1, gaji_bersih;

total_gaji= 50.000*hari;
pph= 0.1*50.000*hari;
gaji_bersih= 50.000*hari-0.1*50.000*hari;

cout <<"\* PT. MAJU BERSAMA TEMAN-TEMAN *"<<endl<<endl;
cout <<"\NOMOR INDUK PEGAWAI  = "; gets(nip);
cout <<"\NAMA LENGKAP PEGAWAI = "; gets(nama);
cout <<"\JUMLAH HARI KERJA    = "; gets(jumlah_hari_kerja);
cout <<"\================ RINCIAN GAJI================"<<endl;

cout <<"\GAJI POKOK  =Rp "<<gaji_pokok<<endl;
cout <<"\TOTAL GAJI  =Rp "<<total_gaji<<endl;
cout <<"\PPH         =Rp "<<pph<<endl;
cout <<"\GAJI BERSIH =Rp "<<gaji_bersih<<endl;



}
Share this article :

Posting Komentar

 
Support : Maia Achiea Template
Copyright © 2011. .: ^_^ :. - All Rights Reserved
Proudly powered by Blogger