Halo sahabat blogger IT, ini
adalah script C++ untuk menghitung gaji karyawan. untuk penjelasan atau
study kasus akan saya jelaskan lain waktu, tapi apabila anda mengetahui
dasar nya insya allah anda sudah mengerti melihat script tersebut, saya akan menjelaskan banyak tentang pemrograman dasar C++, tapi mungkin tidak sekarang, karena masih belum sempat menulis. semoga bermanfaat!! untuk para master, lewat saja!! hehe
(terima kasih untuk mas Dian sudah mengajak saya menulis disini)
DASAR PEMROGRAMAN C++
===============================
Sistem Penggajian Karyawan
===============================
#include<stdio.h>
#include<iostream.h>
#include<string.h>
#include<conio.h>
void karyawan()
{
float gol;
float gapok;
float status;
float tunjangan_gol;
float tunjangan_pend;
float total;
float lembur;
float tot_lembur;
char nama [20];
char nama_k [20];
{
cout<<"============================================================================="<<endl;
cout<<" PEMBAYARAN GAJI KARYAWAN PT. DINGIN DAMAI"<<endl;
cout<<"============================================================================="<<endl;
cout<<""<<endl;
cout<<"NAMA KARYAWAN :";
gets(nama);
cout<<"GOLONGAN (1-3) :";
cin>>gol;
cout<<""<<endl;
cout<<"KODE PENDIDIKAN "<<endl;
cout<<"(1. SMA || 2. D3 || 3. S1) :";
cin>>status;
cout<<""<<endl;
cout<<"JAM KERJA (Normal 160 JAM) :";
cin>>lembur;
if ((gol==1) && (status==1))
{
gapok=300000;
tunjangan_gol=(0.05*gapok);
tunjangan_pend=(0.02*gapok);
tot_lembur=(lembur-160)*2500;
total=(gapok+tunjangan_gol+tunjangan_pend)+tot_lembur;
cout<<"============================================================================="<<endl;
cout<<"GAJI POKOK =Rp. "<<gapok<<endl;
cout<<"TUNJANGAN =Rp. "<<tunjangan_gol+tunjangan_pend<<endl;
cout<<"UPAH LEMBUR =Rp. "<<tot_lembur<<endl;
cout<<""<<endl;
cout<<"-----------------------------------------------------------------------------"<<endl;
cout<<"TOTAL GAJI =Rp. "<<total<<endl;
cout<<"============================================================================="<<endl;}
else if ((gol==1) && (status==2))
{
gapok=300000;
tunjangan_gol=(0.05*gapok);
tunjangan_pend=(0.05*gapok);
tot_lembur=(lembur-160)*2500;
total=(gapok+tunjangan_gol+tunjangan_pend);
cout<<"============================================================================="<<endl;
cout<<"GAJI POKOK =Rp. "<<gapok<<endl;
cout<<"TUNJANGAN =Rp. "<<tunjangan_gol+tunjangan_pend<<endl;
cout<<"UPAH LEMBUR =Rp. "<<tot_lembur<<endl;
cout<<""<<endl;
cout<<"-----------------------------------------------------------------------------"<<endl;
cout<<"TOTAL GAJI =Rp. "<<total<<endl;
cout<<"============================================================================="<<endl;}
else if ((gol==1) && (status==3))
{
gapok=300000;
tunjangan_gol=(0.05*gapok);
tunjangan_pend=(0.07*gapok);
tot_lembur=(lembur-160)*2500;
total=(gapok+tunjangan_gol+tunjangan_pend);
cout<<"============================================================================="<<endl;
cout<<"GAJI POKOK =Rp. "<<gapok<<endl;
cout<<"TUNJANGAN =Rp. "<<tunjangan_gol+tunjangan_pend<<endl;
cout<<"UPAH LEMBUR =Rp. "<<tot_lembur<<endl;
cout<<""<<endl;
cout<<"-----------------------------------------------------------------------------"<<endl;
cout<<"TOTAL GAJI =Rp. "<<total<<endl;
cout<<"============================================================================="<<endl;}
else if ((gol==2) && (status==1))
{
gapok=300000;
tunjangan_gol=(0.10*gapok);
tunjangan_pend=(0.02*gapok);
tot_lembur=(lembur-160)*2500;
total=gapok+(tunjangan_gol+tunjangan_pend);
cout<<"============================================================================="<<endl;
cout<<"GAJI POKOK =Rp. "<<gapok<<endl;
cout<<"TUNJANGAN =Rp. "<<tunjangan_gol+tunjangan_pend<<endl;
cout<<"UPAH LEMBUR =Rp. "<<tot_lembur<<endl;
cout<<""<<endl;
cout<<"-----------------------------------------------------------------------------"<<endl;
cout<<"TOTAL GAJI =Rp. "<<total<<endl;
cout<<"============================================================================="<<endl;}
else if ((gol==2) && (status==2))
{
gapok=300000;
tunjangan_gol=(0.10*gapok);
tunjangan_pend=(0.05*gapok);
tot_lembur=(lembur-160)*2500;
total=gapok+(tunjangan_gol+tunjangan_pend);
cout<<"============================================================================="<<endl;
cout<<"GAJI POKOK =Rp. "<<gapok<<endl;
cout<<"TUNJANGAN =Rp. "<<tunjangan_gol+tunjangan_pend<<endl;
cout<<"UPAH LEMBUR =Rp. "<<tot_lembur<<endl;
cout<<""<<endl;
cout<<"-----------------------------------------------------------------------------"<<endl;
cout<<"TOTAL GAJI =Rp. "<<total<<endl;
cout<<"============================================================================="<<endl;}
else if ((gol==2) && (status==3))
{
gapok=300000;
tunjangan_gol=(0.10*gapok);
tunjangan_pend=(0.07*gapok);
tot_lembur=(lembur-160)*2500;
total=gapok+(tunjangan_gol+tunjangan_pend);
cout<<"============================================================================="<<endl;
cout<<"GAJI POKOK =Rp. "<<gapok<<endl;
cout<<"TUNJANGAN =Rp. "<<tunjangan_gol+tunjangan_pend<<endl;
cout<<"UPAH LEMBUR =Rp. "<<tot_lembur<<endl;
cout<<""<<endl;
cout<<"-----------------------------------------------------------------------------"<<endl;
cout<<"TOTAL GAJI =Rp. "<<total<<endl;
cout<<"============================================================================="<<endl;
}
else if ((gol==3) && (status==1))
{
gapok=300000;
tunjangan_gol=(0.15*gapok);
tunjangan_pend=(0.02*gapok);
tot_lembur=(lembur-160)*2500;
total=gapok+(tunjangan_gol+tunjangan_pend);
cout<<"============================================================================="<<endl;
cout<<"GAJI POKOK =Rp. "<<gapok<<endl;
cout<<"TUNJANGAN =Rp. "<<tunjangan_gol+tunjangan_pend<<endl;
cout<<"UPAH LEMBUR =Rp. "<<tot_lembur<<endl;
cout<<""<<endl;
cout<<"-----------------------------------------------------------------------------"<<endl;
cout<<"TOTAL GAJI =Rp. "<<total<<endl;
cout<<"============================================================================="<<endl;
}
else if ((gol==3) && (status==2))
{
gapok=300000;
tunjangan_gol=(0.15*gapok);
tunjangan_pend=(0.05*gapok);
tot_lembur=(lembur-160)*2500;
total=gapok+(tunjangan_gol+tunjangan_pend);
cout<<"============================================================================="<<endl;
cout<<"GAJI POKOK =Rp. "<<gapok<<endl;
cout<<"TUNJANGAN =Rp. "<<tunjangan_gol+tunjangan_pend<<endl;
cout<<"UPAH LEMBUR =Rp. "<<tot_lembur<<endl;
cout<<""<<endl;
cout<<"-----------------------------------------------------------------------------"<<endl;
cout<<"TOTAL GAJI =Rp. "<<total<<endl;
cout<<"============================================================================="<<endl;}
else if ((gol==3) && (status==3))
{
gapok=300000;
tunjangan_gol=(0.15*gapok);
tunjangan_pend=(0.07*gapok);
tot_lembur=(lembur-160)*2500;
total=gapok+(tunjangan_gol+tunjangan_pend);
cout<<"============================================================================="<<endl;
cout<<"GAJI POKOK =Rp. "<<gapok<<endl;
cout<<"TUNJANGAN =Rp. "<<tunjangan_gol+tunjangan_pend<<endl;
cout<<"UPAH LEMBUR =Rp. "<<tot_lembur<<endl;
cout<<""<<endl;
cout<<"-----------------------------------------------------------------------------"<<endl;
cout<<"TOTAL GAJI =Rp. "<<total<<endl;
cout<<"============================================================================="<<endl;
}
else
{
cout<<"SALAH"<<endl;
}
cout<<""<<endl;
cout<<" TERIMA KASIH"<<endl;
cout<<"============================================================================="<<endl;
}}
void main()
{
clrscr();
karyawan();
getch();
}
===============================
Sistem Penggajian Karyawan
===============================
#include<stdio.h>
#include<iostream.h>
#include<string.h>
#include<conio.h>
void karyawan()
{
float gol;
float gapok;
float status;
float tunjangan_gol;
float tunjangan_pend;
float total;
float lembur;
float tot_lembur;
char nama [20];
char nama_k [20];
{
cout<<"============================================================================="<<endl;
cout<<" PEMBAYARAN GAJI KARYAWAN PT. DINGIN DAMAI"<<endl;
cout<<"============================================================================="<<endl;
cout<<""<<endl;
cout<<"NAMA KARYAWAN :";
gets(nama);
cout<<"GOLONGAN (1-3) :";
cin>>gol;
cout<<""<<endl;
cout<<"KODE PENDIDIKAN "<<endl;
cout<<"(1. SMA || 2. D3 || 3. S1) :";
cin>>status;
cout<<""<<endl;
cout<<"JAM KERJA (Normal 160 JAM) :";
cin>>lembur;
if ((gol==1) && (status==1))
{
gapok=300000;
tunjangan_gol=(0.05*gapok);
tunjangan_pend=(0.02*gapok);
tot_lembur=(lembur-160)*2500;
total=(gapok+tunjangan_gol+tunjangan_pend)+tot_lembur;
cout<<"============================================================================="<<endl;
cout<<"GAJI POKOK =Rp. "<<gapok<<endl;
cout<<"TUNJANGAN =Rp. "<<tunjangan_gol+tunjangan_pend<<endl;
cout<<"UPAH LEMBUR =Rp. "<<tot_lembur<<endl;
cout<<""<<endl;
cout<<"-----------------------------------------------------------------------------"<<endl;
cout<<"TOTAL GAJI =Rp. "<<total<<endl;
cout<<"============================================================================="<<endl;}
else if ((gol==1) && (status==2))
{
gapok=300000;
tunjangan_gol=(0.05*gapok);
tunjangan_pend=(0.05*gapok);
tot_lembur=(lembur-160)*2500;
total=(gapok+tunjangan_gol+tunjangan_pend);
cout<<"============================================================================="<<endl;
cout<<"GAJI POKOK =Rp. "<<gapok<<endl;
cout<<"TUNJANGAN =Rp. "<<tunjangan_gol+tunjangan_pend<<endl;
cout<<"UPAH LEMBUR =Rp. "<<tot_lembur<<endl;
cout<<""<<endl;
cout<<"-----------------------------------------------------------------------------"<<endl;
cout<<"TOTAL GAJI =Rp. "<<total<<endl;
cout<<"============================================================================="<<endl;}
else if ((gol==1) && (status==3))
{
gapok=300000;
tunjangan_gol=(0.05*gapok);
tunjangan_pend=(0.07*gapok);
tot_lembur=(lembur-160)*2500;
total=(gapok+tunjangan_gol+tunjangan_pend);
cout<<"============================================================================="<<endl;
cout<<"GAJI POKOK =Rp. "<<gapok<<endl;
cout<<"TUNJANGAN =Rp. "<<tunjangan_gol+tunjangan_pend<<endl;
cout<<"UPAH LEMBUR =Rp. "<<tot_lembur<<endl;
cout<<""<<endl;
cout<<"-----------------------------------------------------------------------------"<<endl;
cout<<"TOTAL GAJI =Rp. "<<total<<endl;
cout<<"============================================================================="<<endl;}
else if ((gol==2) && (status==1))
{
gapok=300000;
tunjangan_gol=(0.10*gapok);
tunjangan_pend=(0.02*gapok);
tot_lembur=(lembur-160)*2500;
total=gapok+(tunjangan_gol+tunjangan_pend);
cout<<"============================================================================="<<endl;
cout<<"GAJI POKOK =Rp. "<<gapok<<endl;
cout<<"TUNJANGAN =Rp. "<<tunjangan_gol+tunjangan_pend<<endl;
cout<<"UPAH LEMBUR =Rp. "<<tot_lembur<<endl;
cout<<""<<endl;
cout<<"-----------------------------------------------------------------------------"<<endl;
cout<<"TOTAL GAJI =Rp. "<<total<<endl;
cout<<"============================================================================="<<endl;}
else if ((gol==2) && (status==2))
{
gapok=300000;
tunjangan_gol=(0.10*gapok);
tunjangan_pend=(0.05*gapok);
tot_lembur=(lembur-160)*2500;
total=gapok+(tunjangan_gol+tunjangan_pend);
cout<<"============================================================================="<<endl;
cout<<"GAJI POKOK =Rp. "<<gapok<<endl;
cout<<"TUNJANGAN =Rp. "<<tunjangan_gol+tunjangan_pend<<endl;
cout<<"UPAH LEMBUR =Rp. "<<tot_lembur<<endl;
cout<<""<<endl;
cout<<"-----------------------------------------------------------------------------"<<endl;
cout<<"TOTAL GAJI =Rp. "<<total<<endl;
cout<<"============================================================================="<<endl;}
else if ((gol==2) && (status==3))
{
gapok=300000;
tunjangan_gol=(0.10*gapok);
tunjangan_pend=(0.07*gapok);
tot_lembur=(lembur-160)*2500;
total=gapok+(tunjangan_gol+tunjangan_pend);
cout<<"============================================================================="<<endl;
cout<<"GAJI POKOK =Rp. "<<gapok<<endl;
cout<<"TUNJANGAN =Rp. "<<tunjangan_gol+tunjangan_pend<<endl;
cout<<"UPAH LEMBUR =Rp. "<<tot_lembur<<endl;
cout<<""<<endl;
cout<<"-----------------------------------------------------------------------------"<<endl;
cout<<"TOTAL GAJI =Rp. "<<total<<endl;
cout<<"============================================================================="<<endl;
}
else if ((gol==3) && (status==1))
{
gapok=300000;
tunjangan_gol=(0.15*gapok);
tunjangan_pend=(0.02*gapok);
tot_lembur=(lembur-160)*2500;
total=gapok+(tunjangan_gol+tunjangan_pend);
cout<<"============================================================================="<<endl;
cout<<"GAJI POKOK =Rp. "<<gapok<<endl;
cout<<"TUNJANGAN =Rp. "<<tunjangan_gol+tunjangan_pend<<endl;
cout<<"UPAH LEMBUR =Rp. "<<tot_lembur<<endl;
cout<<""<<endl;
cout<<"-----------------------------------------------------------------------------"<<endl;
cout<<"TOTAL GAJI =Rp. "<<total<<endl;
cout<<"============================================================================="<<endl;
}
else if ((gol==3) && (status==2))
{
gapok=300000;
tunjangan_gol=(0.15*gapok);
tunjangan_pend=(0.05*gapok);
tot_lembur=(lembur-160)*2500;
total=gapok+(tunjangan_gol+tunjangan_pend);
cout<<"============================================================================="<<endl;
cout<<"GAJI POKOK =Rp. "<<gapok<<endl;
cout<<"TUNJANGAN =Rp. "<<tunjangan_gol+tunjangan_pend<<endl;
cout<<"UPAH LEMBUR =Rp. "<<tot_lembur<<endl;
cout<<""<<endl;
cout<<"-----------------------------------------------------------------------------"<<endl;
cout<<"TOTAL GAJI =Rp. "<<total<<endl;
cout<<"============================================================================="<<endl;}
else if ((gol==3) && (status==3))
{
gapok=300000;
tunjangan_gol=(0.15*gapok);
tunjangan_pend=(0.07*gapok);
tot_lembur=(lembur-160)*2500;
total=gapok+(tunjangan_gol+tunjangan_pend);
cout<<"============================================================================="<<endl;
cout<<"GAJI POKOK =Rp. "<<gapok<<endl;
cout<<"TUNJANGAN =Rp. "<<tunjangan_gol+tunjangan_pend<<endl;
cout<<"UPAH LEMBUR =Rp. "<<tot_lembur<<endl;
cout<<""<<endl;
cout<<"-----------------------------------------------------------------------------"<<endl;
cout<<"TOTAL GAJI =Rp. "<<total<<endl;
cout<<"============================================================================="<<endl;
}
else
{
cout<<"SALAH"<<endl;
}
cout<<""<<endl;
cout<<" TERIMA KASIH"<<endl;
cout<<"============================================================================="<<endl;
}}
void main()
{
clrscr();
karyawan();
getch();
}
gan kok komentar saya di hapus ?
BalasHapussudah memakai kata kata yang benar loh kalu tidak bisa jawab ya sudah tinggal bilang
A manageable and simple code is a principal ability for every programmer. Freshly I started programming still my profession is Professional SEO Services Provider. Newly I ended my C++ programming course and starting HTML5.
Hapusmakasih untuk informasinya, sangat membantu
BalasHapusTempat Tidur Anak
very nice this information, thanks
BalasHapusTempat Tidur Kupu Kupu
terimakasih informasinya sangat bermanfaat
BalasHapusTempat Tidur Anak Model Sorong
I like your information thanks,,,
BalasHapusTempat Tidur Ukiran Mewah
Terimakasih atas informasi yang bagus ini....
BalasHapusSet Tempat Tidur Anak Tingkat Sorong
salam sukses, terimakasih infonya
BalasHapusJual Meja Rias Murah Terbaru
mantab informasinya, terimakasih sudah berbagi
BalasHapusSet Tempat Tidur Anak Hello Kitty
Sukses selalu dan terimakasih informasinya
BalasHapusMeja Belajar Anak Jati
informasinya yang menarik, thanks
BalasHapusTempat Tidur Mewah Ukiran Gold Jepara
bagus sekali informasinya,,,
BalasHapusMeja Rias Anak Mewah
Semoga sukses selalu, terimakasih infonya,,,
BalasHapusLemari Pakaian Bayi
Menarik sekali infonya, terimakasih
BalasHapusLemari Pakaian Anak Perempuan Terbaru
Infonya sangat bagus terimakasih
BalasHapusMeja Belajar Anak Perempuan Minimalis
informasinya sangat bermanfaat, thanks
BalasHapusLemari Pakaian Anak Perempuan Terbaru
informasi yang sangat membantu, thanks
BalasHapusMeja Belajar Anak Perempuan Minimalis
Studies demonstrate that around 56% of all understudies think about their homework as the most essential wellspring of worry in their life. It is no big surprise then these understudies continually consider 'who can get my work done ' in UK. Luckily for them, we give master homework help at truly sensible costs. Assignment Writing Help
BalasHapusاعتبار سنجی چک
BalasHapusدانلود آهنگ جدید پازل بند و حمید هیرادبه نام دلارام
BalasHapusتمام آهنگ های اشوان
BalasHapusآهنگ های احسان دریا دل
Hi, I am Kevin Booth, currently working at blockchain support. We are an independent third-party blockchain support provider. If you facing any issues while creating your new Blockchain account or while managing an old blockchain account, simply contact us at the blockchain support number and experts will resolve your issue.
BalasHapusgoogle 4698
BalasHapusgoogle 4699
google 4700
google 4701
google 4702
Thank you for posting such a great article. Keep it up mate.
BalasHapusKerala Pension - Prism Portal | Online Affidavits Submit @prismplus.kerala.gov.in | Online Mobile Registration Process
Parallels Desktop Crack for Mac 2021 is the best software that lets you work on Windows and Mac simultaneously. Now available for new and current users.
BalasHapusChimera Tool Crack
VMware Workstation Pro Crack License Key
Autodesk Fusion 360 Crack
BalasHapusCLick this link!
DAEMON Tools is a program that will allow you to create up to 4 virtual CD or DVD drives so you can use the content of your CD/DVDs with anticopy protection without running into any restrictions. It supports both the DT and SCSI formats.
I am an essay writer US where I provide my services of essay writing to students belonging to different fields. Recently; I’ve been facing some kind of issue in my applications which is affecting the motion of my performance. Somebody has suggested getting my C++ programming fixed and I don’t have an idea what is it. Can you guide me through?
BalasHapusKomentar ini telah dihapus oleh pengarang.
BalasHapusSource Code Sederhana Menghitung Gaji Karyawan dengan C++ thanks for sharing us. I have visited to this site many times and every time i find useful jobs for me so i would suggest please come to this site and take the chance from here. You did a great job by sharing this site. I appreciate your effort and thanks for sharing. Get best Remote Working Jobs visit here site for more info.
BalasHapusI like the gainful knowledge you give in your articles. I'll bookmark your site and check again here habitually. You did a great job and i am very happy to see this because it is very useful for me. Thanks for sharing. Get best Dubai SEO service of marketing you visit here site for more info.
BalasHapusThanks for providing your knowledge with us basically I'm the business owner I'm providing best mca leads at a really affordable price from the US.
BalasHapusBecause you make so many excellent points, I read your essay numerous times.Thanks for the informative blog.Thanks for sharing beautiful content. I got information from your blog.keep sharing
BalasHapusdivorcio de mutuo acuerdo fredericksburg virginia
In the engrossing television series "Spencer," we see Princess Diana's
BalasHapustragic journey through a trying period in the imperial family's history. She struggles with the crumbling and destroyed foundation of her union with Sovereign Charles in the midst of the grandeur of imperial life in the English government, afflicted by constant media supervision, inspection, and public preconceptions.
We sympathize with Princess Diana's psychological struggle as the plot develops as she struggles to balance her roles as a loving mother to her two children and an imperial figure in the English government. The flawless portrayal of Kristen Stewart in the movie captures Diana's inner struggles, showing both her gullibility as a mother and a princess and her resolve to go her own way.
Witness the fusion of scientific precision and artistic intuition at Healing Buddha, where energy healing is not just a technique but a deeply crafted form of well-being.
BalasHapushealingbuddha