Program Menghitung Gaji

Diposting oleh Unknown on Jumat, 09 November 2012

Program Menghitung Gaji, setelah sebelumnya saya menshare kode Program Kalkulator C++ , sekarang saya akan memaparkan kode program menghitung gaji.

gambar program c++

Kode program menghitung gaji seperti berikut :


#include <iostream.h>
#include <stdio.h>
#include <conio.h>
main ()
{

    cout<<"Program Menghitung Gaji"<<endl;
    cout<<"Created By Putra Mahayana"<<endl;
    cout<<"http://kumpulan-pemrograman.blogspot.com"<<endl;
    cout<<"======================================="<<endl;

 float  a,b,c,d;

 printf("Aplikasi Penghitungan Gaji Pegawai");
 printf("\n=======================================");
 printf("\n");
 awal:
 printf ("Nama Pegawai: ") ; scanf ("%s", &d);
 printf("\n Masukkan Jumlah Gaji Pokok : ");scanf("%f",&a);
 printf("\n Masukkan Jumlah Tunjangan  : ");scanf("%f",&b);
 printf("\n=======================================");
 c=a+b;
 printf("\n Jumlah Total Gaji (gaji kotor)  : %.f",c);
 d=(c*20)/100;
 printf("\n PPh 20 persen      : %.3f",d);

 printf("\n Gaji Setalah Potong PPh (gaji bersih): %.3f",c-d);
 printf("\n=======================================\n");


  {cout<<"Mengulang : [Y/N] ? "  ;
    char m ;
    cin>>m;
        if (m == 'Y')
            goto awal ;
        else if (m == 'N')
            {
            cout<<"\n\nhttp://kumpulan-pemrograman.blogspot.com";}



getch ();
return 0;
}}

{ 2 komentar... read them below or add one }

Unknown mengatakan...

awal ?

Anonim mengatakan...

Lucky Club Casino Site Review - luckyclub.live
Check out Lucky Club Casino and grab the chance to win big money. Lucky luckyclub Club is the latest online casino to hit the market. The website is not your typical

Posting Komentar