Program Hitung Gaji Karyawan C++

ASSALAMUALAIKUM WR. WB. Kali ini sy akan membagikan Program Hitung Nilai Akhir C++ . untuk tampilannya akan seperti ini. #inclu...

ASSALAMUALAIKUM WR. WB.

Kali ini sy akan membagikan Program Hitung Nilai Akhir C++. untuk tampilannya akan seperti ini.


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

main(){

 char nama[80], yes, golongan_pendidikan[9];
 int jam_kerja = 8 * 6 * 4, golongan_jabatan, total_kerja, jam_lembur;
 long gaji_pokok = 300000, honor_lembur_per_jam = 3500, honor_lembur, tunjangan_jabatan, tunjangan_pendidikan, total_honor;

 awal:
cout<<"\t\t\t**********************************\n";
cout<<"\t\t\tNama      : MOHAMMAD SYAIFULLAH\n";
cout<<"\t\t\tNIM      : 121411091\n";
cout<<"\t\t\tJurusan   : Teknik lnformatika \n";
cout<<"\t\t\tNama      : M TAEFUROHMAN\n";
cout<<"\t\t\tNIM      : 121411079\n";
cout<<"\t\t\tJurusan   : Teknik lnformatika \n";
cout<<"\t\t\tNama      : MUHAMMAD HUSNUL ANDIAN\n";
cout<<"\t\t\tNIM      : 121411083\n";
cout<<"\t\t\tJurusan   : Teknik lnformatika \n";
cout<<"\t\t\t**********************************\n\n";

cout<<"\n\t\t\tPROGRAM PENGHITUNG GAJI KARYAWAN\n";
cout<<"\t\t\tPT. DINGIN DAMAI\n";
cout<<"\t\t\t==================================\n\n";
cout<<" Nama Karyawan : ";
gets(nama);

cout<<" Golongan Jabatan : "; cin>>golongan_jabatan;
cout<<" Golongan Pendidikan  : "; cin>>golongan_pendidikan;
cout<<" Jumlah Jam Kerja Dalam Sebulan : "; cin>>total_kerja;

 if(golongan_jabatan==1){
   tunjangan_jabatan = 5 * gaji_pokok / 100;
 }
 else if(golongan_jabatan==2){
   tunjangan_jabatan = 10 * gaji_pokok / 100;
 }
 else if(golongan_jabatan==3){
   tunjangan_jabatan = 15 * gaji_pokok / 100;
 }
 else{
   cout<<" \n *Kode Golongan Jabatan Yang Anda Masukkan Salah!!!"<<endl<<endl;
   goto bawah;
 }


 if (strcmp(golongan_pendidikan,"sma")==0||strcmp(golongan_pendidikan,"SMA")==0){
   tunjangan_pendidikan = 2.5 * gaji_pokok / 100;
 }
 else if (strcmp(golongan_pendidikan,"d1")==0||strcmp(golongan_pendidikan,"D1")==0){
   tunjangan_pendidikan = 5 * gaji_pokok / 100;
 }
 else if (strcmp(golongan_pendidikan,"d3")==0||strcmp(golongan_pendidikan,"D3")==0){
   tunjangan_pendidikan = 20 * gaji_pokok / 100;
 }
 else if(strcmp(golongan_pendidikan,"s1")==0||strcmp(golongan_pendidikan,"S1")==0){
   tunjangan_pendidikan = 30 * gaji_pokok / 100;
 }
 else{
   cout<<" \n *Kode Golongan Pendidikan Yang Anda Masukkan Salah!!!"<<endl<<endl;
   goto bawah;
 }


 jam_lembur = total_kerja - jam_kerja;
 honor_lembur = jam_lembur * honor_lembur_per_jam;
 total_honor = honor_lembur + gaji_pokok + tunjangan_jabatan + tunjangan_pendidikan;

 cout<<" \n Karyawan yang bernama "<<nama<<endl;
 cout<<" Honor yang diterima."<<endl<<endl;
 cout<<"    Tunjangan Jabatan\t\t\t: Rp. "<<tunjangan_jabatan<<endl;
 cout<<"    Tunjangan Pendidikan\t\t: Rp. "<<tunjangan_pendidikan<<endl;
 cout<<"    Honor Lembur\t\t\t: Rp. "<<honor_lembur<<endl;
 cout<<"    Gaji Pokok\t\t\t\t: Rp. "<<gaji_pokok<<endl;
 cout<<"    \t\t\t\t_____________________+"<<endl;
 cout<<"    Total Honor\t\t\t\t: Rp. "<<total_honor<<endl<<endl<<endl;



 bawah:
 cout<<"\nApakah Anda Ingin Mengulang [Y/N] ? "  ;
char m ;
cin>>m;
if (m == 'y' || m== 'Y')
goto awal;
else if (m == 'n' || m== 'N')
{
cout<<"\n\n\t\t\t      \"MOHAMMAD SYAIFULLAH\"";
cout<<"\n\n\t\t\t      \"M TAEFUROHMAN\"";
cout<<"\n\n\t\t\t      \"MUHAMMAD HUSNUL ANDIAN\"";

cout<<endl;
goto akhir;
}
akhir:
cout<<"\n\n\t\t\t    \"TERMA KASIH\"";
 getch();
 }

COMMENTS

Nama

AJAX Android APLIKASI APLIKASI PROGRAMMING BASIC Bootstrap C Plus Plus Cisco Packet Tracer Codeigniter CRUD CSS Framework HTML Instaling Jaringan Komputer Java Java Script JavaScript JQUERY Pengetahuan PHP Programming Review Sekolah SOURCODE Teknologi TipsTrick Tutorial Video Yii
false
ltr
item
HI-CODDING: Program Hitung Gaji Karyawan C++
Program Hitung Gaji Karyawan C++
http://2.bp.blogspot.com/-Rzeqv_3Z9Z4/Vlh2PlrKxfI/AAAAAAAAAiY/FPjTuOVJN2Y/s320/Screenshot_1.png
http://2.bp.blogspot.com/-Rzeqv_3Z9Z4/Vlh2PlrKxfI/AAAAAAAAAiY/FPjTuOVJN2Y/s72-c/Screenshot_1.png
HI-CODDING
http://www.hi-codding.net/2015/11/program-hitung-gaji-karyawan-c.html
http://www.hi-codding.net/
http://www.hi-codding.net/
http://www.hi-codding.net/2015/11/program-hitung-gaji-karyawan-c.html
true
5256670903611799845
UTF-8
Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS CONTENT IS PREMIUM Please share to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy