Selasa, 06 November 2012

Source Code Sederhana Menghitung Gaji Karyawan dengan C++

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();
}

45 komentar:

  1. gan kok komentar saya di hapus ?
    sudah memakai kata kata yang benar loh kalu tidak bisa jawab ya sudah tinggal bilang

    BalasHapus
    Balasan
    1. IEEE Project Domain management in software engineering is distinct from traditional project deveopment in that software projects have a unique lifecycle process that requires multiple rounds of testing, updating, and faculty feedback. A IEEE Domain project Final Year Projects for CSE system development life cycle is essentially a phased project model that defines the organizational constraints of a large-scale systems project. The methods used in a IEEE DOmain Project systems development life cycle strategy Project Centers in Chennai For CSE provide clearly defined phases of work to plan, design, test, deploy, and maintain information systems.


      This is enough for me. I want to write software that anyone can use, and virtually everyone who has an internet connected device with a screen can use apps written in JavaScript. JavaScript Training in Chennai JavaScript was used for little more than mouse hover animations and little calculations to make static websites feel more interactive. Let’s assume 90% of all websites using JavaScript use it in a trivial way. That still leaves 150 million substantial JavaScript Training in Chennai JavaScript applications.

      Hapus
    2. 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.

      Hapus
  2. makasih untuk informasinya, sangat membantu
    Tempat Tidur Anak

    BalasHapus
  3. Sukses selalu dan terimakasih informasinya
    Meja Belajar Anak Jati

    BalasHapus
  4. Semoga sukses selalu, terimakasih infonya,,,
    Lemari Pakaian Bayi

    BalasHapus
  5. 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


  6. مكافحة حشرات بالخبر مكافحة حشرات بالخبر
    مكافحة حشرات بمكة مكافحة حشرات بمكة
    مكافحة حشرات بالمدينة المنورة مكافحة حشرات بالمدينة المنورة
    مكافحة حشرات بالدمام مكافحة حشرات بالدمام


    مكافحة حشرات بالاحساء مكافحة حشرات بالاحساء


    تنظيف مكيفات بالرياض تنظيف مكيفات بالرياض
    شركة تنظيف افران الغاز بالرياض شركة تنظيف افران الغاز بالرياض
    تركيب اثاث ايكيا بالرياض تركيب اثاث ايكيا بالرياض
    تركيب مكيفات بالرياض تركيب مكيفات بالرياض

    BalasHapus
  7. Being the outstanding website development company in delhi It is renowned for providing beautiful websites and allows you to enjoy the seamless experience from website design and development to website optimization for various platforms for all your website design and development needs. We work both for higher rankings as well as for conversions. We are Top 5 Digital marketing company in delhi that ensures your business visibility on top of the search engines. At Wondermouse Technologies- website development company, our team has a wealth of experience in making sure it is easy to use and professional.

    BalasHapus
  8. 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.

    BalasHapus
  9. Amazing and infromative post, checkout this as well:- online biology tutor

    BalasHapus
  10. Cytomic The Glue Crack Free is a high-quality model, the emulation of which is based on a hybrid of the bus compressors of the series SSL 4000 E and G, but with the addition of some additional functions.
    Korg Legacy Collection mac Crack
    Cytomic The Glue VST Crack
    Matlab Crack

    BalasHapus
  11. 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.
    Chimera Tool Crack
    VMware Workstation Pro Crack License Key
    Autodesk Fusion 360 Crack

    BalasHapus

  12. CLick 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.

    BalasHapus
  13. 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?

    BalasHapus
  14. If a newbie enters a programming class, he needs to pick up the pace on time and finish off all the Java assignments on time as other students in the class. But it is not always possible for each and every student to finish the task on time. They need to handle other subjects too. But deadlines never wait for anyone, and if not submitted within the stipulated time, the assignments will get rejected by the professor. So, the student needs to clear the assignments on time. Hence, they look for Java programming assignment help at the hour of need.

    BalasHapus
  15. Excellent post.
    I was checking constantly this blog and I am impressed!
    VorpX Crack Amazing 3D programs require a great interface. It was designed to make 3D picture editing, recording videos, and playing video games easier and more fun.
    VorpX Crack is easy to install, use, and configure. DirectX 9 is a better software implementation that will allow your computer to process 3D video faster. It was developed by a team of developers, engineers, computer scientists, and designers.
    Bitdefender Total Security Crack ranks as one of the most popular antivirus software that is all-inclusive to eliminate and detect maliciously.

    BalasHapus

  16. Extremely helpful information particularly the last part.
    I care for such information much.
    VorpX Crack package also includes a 3D driver package specially designed for VR. Stereo effects are used to enhance the display of the computer on a headset. This device has more than just its basic functionality.
    VorpX Crack is necessary to have amazing 3D shows. The interface was created to make editing 3D pictures, recording videos, and playing games a more convenient and pleasant experience.
    PS4 Save Wizard Crack can be the most effective cheat tool for PS-4 games. Its characteristics are excellent and it will be useful in any situation of this match.

    BalasHapus
  17. Thanks for sharing such meaningful information. I am waiting for a long and feel energetic after reading such a post. I am looking forward to the genuine way to transform information from one place to another place. I am glad to link your website with the Assignment Help domain. I prefer to subscribe to our website so that any meaningful information cannot remain for further reading.

    BalasHapus
  18. Komentar ini telah dihapus oleh pengarang.

    BalasHapus
  19. Source 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.

    BalasHapus
  20. I 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.

    BalasHapus
  21. Thanks 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.

    BalasHapus

Bagi teman - teman yang menemukan link, yang tidak bisa di download, segera laporkan ya... Supaya bisa di perbaiki.
Laporkan link yang tidak bisa di download ke nomor : 085736497749
Dengan format : Nama Anda - Lapor - Link - Rusak
Contoh : Dian - Lapor - http://materi-it.unpkediri.ac.id/p/blog-page_2.html - Rusak

Terimakasih selamat berkunjung kembali dan semoga bermanfaat.