Program Hitung Gaji Karyawan Menggunakan C++

Posted by Unknown Selasa, 17 Desember 2013 0 komentar



#include <iostream.h>
#include <conio.h>
#include <iomanip.h>
void main() {
   float lk, jhk, gp, gh, bonus, jg;
   cout<<"PROGRAM HITUNG GAJI"<<endl;
   cout<<"==================="<<endl;
   cout<<endl;
   cout<<"INPUT LAMA KERJA (TAHUN) = ";
   cin>>lk;
   if (lk <= 1) {
      gp = 1000000;
   }
   else {
      gp = 2000000;
   }

   cout<<"INPUT LAMA KERJA (BULAN) = ";
   cin>>jhk;
   gh = jhk * 25000;
   if (jhk > 25) {
     bonus = 0.2 * gp;
   }
   else {
     if (jhk >= 20) {
       bonus = 0.1 * gp;
     }
     else {
       bonus = 0;
     }
   }
   jg = gp + gh + bonus;
   cout<<endl;
   cout<<"GAJI POKOK               = Rp. "<<setprecision(7)<<gp<<endl;
   cout<<"GAJI HARIAN              = Rp. "<<setprecision(7)<<gh<<endl;
   cout<<"BONUS                    = Rp. "<<setprecision(7)<<bonus<<endl;
   cout<<"JUMLAH GAJI              = Rp. "<<setprecision(7)<<jg;

   cout<<endl;
   cout<<endl;
   cout<<endl;
   if (jhk > 20) {
     cout<<"        Anda Rajin         ";
   }
   else {
     cout<<"        Anda Malas";
   }

   getch();
}
TERIMA KASIH ATAS KUNJUNGAN SAUDARA
Judul: Program Hitung Gaji Karyawan Menggunakan C++
Ditulis oleh Unknown
Rating Blog 5 dari 5
Semoga artikel ini bermanfaat bagi saudara. Jika ingin mengutip, baik itu sebagian atau keseluruhan dari isi artikel ini harap menyertakan link dofollow ke http://androidamazon7.blogspot.com/2013/12/program-hitung-gaji-karyawan.html. Terima kasih sudah singgah membaca artikel ini.

0 komentar:

Posting Komentar

Trik SEO Terbaru support Online Shop Baju Wanita - Original design by Bamz | Copyright of android amazon.