• Hai, Welcome ! Like us on:

Program Perhitungan Gaji Karyawan

#include <iostream.h>
#include <iomanip.h>
#include <string.h>
#include <conio.h>

void masuk();
void garis();
void main()
   cout <<"\n PROGRAMMING GAJI KARYAWAN " <<endl;
   cout <<" oleh : Nanang Yuniantoro " <<endl<<endl;

   getch ();


void masuk()
char nama[30], naama[30];
float nik, hari;
   int lembur;
   double gaji;
   cout <<endl;
   cout <<" Masukkan Nama Anda = "; cin>>nama;
   strcpy(naama, nama);
   cout <<" Masukkan NIK Anda = "; cin>>nik;
   cout <<" Masukkan Jumlah Hari Anda Masuk = "; cin>>hari;
   cout <<" Masukkan Berapa Jam anda lembur = " ; cin>>lembur;
   cout <<endl;
cout <<"Nama | NIK | Hari Masuk | Lembur | Total " <<endl;
   cout <<""<<naama<<" "<<nik<<" "<<hari<<" "<<lembur<<" Rp. "<<gaji<<"rb"<<endl;
void garis()
int i;

   for (i=0;i<35;i++)
   cout <<"-";
   cout <<endl;

0 komentar:

Posting Komentar

Silahkan Berargumentasi. ^_^
Readers may send comments on this post. The contents of comments not represent the views, opinions or policies Ikatan Alumni Titian Foundation and entirely the responsibility of the sender.

Readers can report a comment if it is considered unethical, abusive, defamatory, or redistributed. Ikatan Alumni Titian Foundation will consider each complaint and may decide to keep or delete the comment display.