#include "stdio.h"
#include "conio.h"
#include "iostream.h"
#include "iomanip.h"
garis()
{ cout<<" \n \n --------------------------------------------------------\n \n"; }
float lebih(float jk)
{
if(jk>=8) { return (jk - 8); }
else { return (0); }
}
main()
{
int i;
float t;
struct
{ char nm[15]; int jk,kl; float hl,hh; }honor[10];
garis();
cout<<" Daftar Honor Pegawai Honorer "<
for(i=1;i<6;i++)
{
cout<<" Data Ke - "< cout<<" Nama Pegawai : "; cin>>honor[i].nm;
cout<<" Jumlah Jam Kerja : "; cin>>honor[i].jk;
cout<
honor[i].kl=lebih(honor[i].jk);
honor[i].hh=15000;
honor[i].hl=honor[i].hh+(5000*honor[i].kl);
t = t + honor[i].hl;
}
clrscr();
garis();
cout<<" Daftar Honor Pegawai Honorer "<
cout<<" No. Nama Jumlah Kelebihan Jumlah "<
for(i=1;i<6;i++)
{
cout<
}
garis();
cout<<" Total : Rp. "<
getch();
}
0 komentar