PROGRAM DATA GURU
#include"conio.h"
#include"iostream.h"
void main()
{
char nip;
char *jabatan;
char *nama;
int data,i;
long gaji ;
gotoxy(16,1);cout<<"DATA GURU SMP N 18 SURABAYA";
gotoxy(10,3);cout<<"jumlah data :";cin>>data;
gotoxy(10,4);cout<<"----------------------------------------------------------------";
gotoxy(10,5);cout<<" NO NIP NAMA JABATAN GAJI ";
gotoxy(10,6);cout<<"----------------------------------------------------------------";
for(i=1;i<=data;i++){
gotoxy(11,i+6);cout<<i;
gotoxy(15,i+6);cin>>nip;
if(nip=='1'){
gaji=2700000;nama="DRS.AHMAD
SIREGAR";jabatan="KEPALA SEKOLAH";
}else
if(nip=='2'){
gaji=2500000;nama="AHMAD
ZULFIKAR,Spd";jabatan="WAKIL KEPALA SEKOLAH";
}else
if(nip=='3'){
gaji=1500000;nama="SRI
HARTATI,SE";jabatan="BENDAHARA";
}else
if (nip=='4'){
gaji=1300000;nama="M.SILABAN,Spd";jabatan="GURU";}
gotoxy(20,i+6);cout<<nama;
gotoxy(40,i+6);cout<<jabatan;
gotoxy(65,i+6);cout<<gaji; }
gotoxy(10,i+7);cout<<"---------------------------------------------------------------";
}
Tidak ada komentar:
Posting Komentar