SlideShare a Scribd company logo
1 of 14
Loading.....
KELOMPOK :
1.Haryati
2.Rendi
* Manfaat dan Tujuan
* Algoritma & Flowchart
* Coding & Running
Manfaat
1.Adanya proses pencatatan gaji pokok beserta tunjangan secara lebih mendetail dan
dijamin lebih akurat.
2.Penyesuain terhadap tunjangan gaji yang diberlakukan untuk kepentingan karyawan
dan perusahaan (seperti tunjangan istri dan anak).
3.Penyajian laporan data gaji karyawan secara periodik.
4.Kemudahan pencetakan slip gaji karyawan.
Algoritma
1. Mulai
2. Inputkan Nomor Induk Pegawai, Nama Pegawai dan Jabatan
3. Inputkan Status
4. Jika status = 1 maka inputkan jumlah anak, jika status =2 maka
langsung ke menu slip gaji
5. Output slip gaji
6. Jika ingin menghitung gaji lagi maka tekan Y, jika tidak tekan N
7. Selesai.
Mulai
Inputkan NIP, Nama
Pegawai dan Jabatan
Jabatan = 1
Jabatan = 2 Gaji Pokok Rp
3.000.000
Inputkan Status
Gaji Pokok
Rp 5.000.000
Jabatan = 3
Gaji Pokok
Rp 2.800.000
Jabatan = 4
Gaji Pokok
Rp 2.800.000
Jabatan = 5
Gaji Pokok
Rp 2.500.000
A
Jabatan = 6
Gaji Pokok
Rp 2.200.000
Jabatan = 7
Gaji Pokok
Rp 1.700.000
Status = 1
Tunjangan Istri 15% *
gaji pokok
Jmlanak > 3
Tunjangan Anak
5% * gaji pokok
Tunjangan Anak =
0
Hitung Total Gaji
Gaji+ti+ta
Hitung Gaji
Lagi?
Selesai
B
Kembali Ke-A
program tunjangan;
uses crt;
label input, print, bye;
var nm,no,jab :string;
gj,ti,ta,totgj :real;
stat,jmlank,i,lama :integer;
yn : char;
begin
mulai:
clrscr;
gotoxy(25,1);
writeln(' ==============================');
gotoxy(25,2);
writeln('- UJIAN TENGAH SEMESTER PASCAL -');
gotoxy(25,3);
writeln(' ==============================');
gotoxy(35,4);
writeln('1. Haryati');
gotoxy(35,5);
writeln('2. Rendi');
writeln;
writeln(' ÛÛÛÛÛÛÛÛÛÛÛÛ ');
writeln(' ÛÛÛÛÛÛÛÛÛÛÛÛÛÛ ');
writeln(' Û ÛÛÛÛ ÛÛÛÛÛÛÛÛÛ ');
writeln(' ÛÛ ÛÛÛÛ ÛÛÛÛÛÛÛÛÛÛ ');
writeln(' ÛÛÛ ÛÛÛÛ ÛÛÛÛÛÛÛÛÛÛÛ ');
writeln(' ÛÛÛÛ ÛÛÛÛ ÛÛÛÛÛÛÛÛÛÛÛÛ ');
writeln(' ÛÛÛÛÛ ÛÛÛÛÛÛÛÛÛÛÛÛÛ');
writeln(' ÛÛÛÛÛ ÛÛÛÛ Û ÛÛÛÛÛÛÛ');
writeln(' ÛÛÛÛÛ ÛÛÛÛ Û ÛÛÛÛ ÛÛÛÛÛÛ');
writeln(' ÛÛÛÛÛ ÛÛÛÛ Û ÛÛÛÛ ÛÛÛÛÛÛ');
writeln(' ÛÛÛÛ ÛÛÛÛ Û ÛÛÛÛÛÛ ');
writeln(' ÛÛÛÛÛÛÛÛÛÛ ÛÛÛÛÛÛÛÛ ');
writeln(' ÛÛÛÛÛÛÛÛÛ Û ÛÛÛÛÛÛ ');
writeln(' ÛÛÛÛÛÛÛÛ ÛÛ ÛÛÛÛ ');
writeln(' ÛÛÛÛÛÛÛ ÛÛÛ ÛÛ ');
writeln(' ÛÛÛÛÛÛÛÛÛÛÛÛ ');
gotoxy(33,24);
write('Ingin Memulai(y/n) : ');readln(yn);
if (yn='Y')or(yn='y') then goto input
else if (yn='N')or(yn='n') then goto bye;
input:
clrscr;
textcolor(green);
gotoxy(15,1);
writeln(' ======================================================');
textcolor(white);
gotoxy(15,2);
writeln('- PROGRAM PERHITUNGAN GAJI DAN TUNJANGAN ANAK ISTRI -');
textcolor(green);
gotoxy(15,3);
writeln(' ======================================================');
textcolor(white);
gotoxy(1,5);
writeln('- Masukkan data sesuai pada ketentuan berikut -');
textcolor(green);
writeln('_______________________________________________')
;
textcolor(yellow);
writeln(' Jabatan');
textcolor(white);
writeln(' 1. Direktur');
writeln(' 2. Wakil Direktur');
writeln(' 3. Sekertaris');
writeln(' 4. Bendahara');
writeln(' 5. Kepala Bagian');
writeln(' 6. Karyawan');
writeln(' 7. 0B');
writeln('');
textcolor(yellow);
writeln('Status');
textcolor(white);
writeln(' 1. Kawin ');
writeln(' 2. Tidak Kawin ');
textcolor(green);
writeln('______________________________________________');
textcolor(white);
gotoxy(1,23);
write('Nomor Induk Pegawai : ');readln(no);
write('Nama Pegawai : ');readln(nm);
write('Jabatan Pegawai : ');readln(jab);
if jab='1' then gj:=5000000
else if jab='2' then gj:=3000000
else if jab='3' then gj:=2800000
else if jab='4' then gj:=2800000
else if jab='5' then gj:=2500000
else if jab='6' then gj:=2200000
else if jab='7' then gj:=1700000;
writeln('Gaji Pokok : Rp. ',gj:0:2);
write('Status Perkawinan : ');readln(stat);
case stat of
1 :begin
ti :=(15/100)*gj;
write('Jumlah Anak : ');readln(jmlank);
if (jmlank >=3) then ta :=(5/100)*gj
else if (jmlank <3) then ta :=0;
end;
2 :Begin
ti :=0;
ta :=0;
end;
end;
writeln;
textcolor(green);
writeln('PLEASE WAIT..!!!:');
totgj:=gj+ta+ti;
for i:= 1 to 28 do
begin
textcolor(i);
lama:=100;
delay(lama);write('>>>');
end;
begin
print:
clrscr;
textcolor(white);
gotoxy(13,1);
writeln('======================o0 SLIP GAJI 0o=====================');
gotoxy(13,3);
writeln('Nama : ',nm);
gotoxy(13,4);
writeln('NO.Karyawan : ',no);
gotoxy(13,5);
if jab='1' then jab:='Direktur'
else if jab='2' then jab:='Wakil Direktur'
else if jab='3' then jab:='Sekertaris'
else if jab='4' then jab:='Bendahara'
else if jab='5' then jab:='Kepala Bagian'
else if jab='6' then jab:='Karyawan'
else if jab='7' then jab:='OB';
writeln('Jabatan : ',jab);
gotoxy(13,6);
writeln('+========================================================+');
gotoxy(13,7);
writeln('| Rincian Gaji | Jumlah |');
gotoxy(13,8);
writeln('+========================================================+');
gotoxy(13,9);
writeln('|Gaji Pokok :|Rp ',gj:8:0,' |');
gotoxy(13,10);
writeln('|Tunjangan Anak :|Rp ',ta:8:0,' |');
gotoxy(13,11);
writeln('|Tunjangan Istri :|Rp ',ti:8:0,' |');
gotoxy(13,12);
writeln('| :| |');
gotoxy(13,13);
writeln('+========================================================+');
gotoxy(13,14);
writeln('|Total Gaji Bersih :|Rp ',totgj:8:0,' |');
gotoxy(13,15);
writeln('+========================================================+');
gotoxy(13,17);
writeln('Note : Gaji anda sudah termasuk PPN 5%');
gotoxy(13,19);
write('Apakah anda ingin menghitung gaji lagi?(y/n) : ');readln(yn);
if (yn='y') or (yn='Y') then goto input
else if (yn='n') or (yn='N') then goto bye;
end;
begin
bye:
clrscr;
gotoxy(20,1);
writeln('Terima Kasih Telah Menggunakan Program Ini');
end;
readln;
end;
end.
Loading..... DOCUMENTProgram Perhitungan Gaji dan Tunjangan

More Related Content

More from haryati_rya

Laporan praktikum-modul-5
Laporan praktikum-modul-5 Laporan praktikum-modul-5
Laporan praktikum-modul-5 haryati_rya
 
Laporan praktikum-modul-4
Laporan praktikum-modul-4 Laporan praktikum-modul-4
Laporan praktikum-modul-4 haryati_rya
 
Laporan praktikum 3
Laporan praktikum 3Laporan praktikum 3
Laporan praktikum 3haryati_rya
 
Laporan praktikum 2
Laporan praktikum 2 Laporan praktikum 2
Laporan praktikum 2 haryati_rya
 
Laporan Paktikum 1
Laporan Paktikum 1Laporan Paktikum 1
Laporan Paktikum 1haryati_rya
 

More from haryati_rya (6)

Kelompok 1
Kelompok 1 Kelompok 1
Kelompok 1
 
Laporan praktikum-modul-5
Laporan praktikum-modul-5 Laporan praktikum-modul-5
Laporan praktikum-modul-5
 
Laporan praktikum-modul-4
Laporan praktikum-modul-4 Laporan praktikum-modul-4
Laporan praktikum-modul-4
 
Laporan praktikum 3
Laporan praktikum 3Laporan praktikum 3
Laporan praktikum 3
 
Laporan praktikum 2
Laporan praktikum 2 Laporan praktikum 2
Laporan praktikum 2
 
Laporan Paktikum 1
Laporan Paktikum 1Laporan Paktikum 1
Laporan Paktikum 1
 

Recently uploaded

The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...PsychoTech Services
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 

Recently uploaded (20)

Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 

Loading..... DOCUMENTProgram Perhitungan Gaji dan Tunjangan

  • 3.
  • 4. * Manfaat dan Tujuan * Algoritma & Flowchart * Coding & Running
  • 5. Manfaat 1.Adanya proses pencatatan gaji pokok beserta tunjangan secara lebih mendetail dan dijamin lebih akurat. 2.Penyesuain terhadap tunjangan gaji yang diberlakukan untuk kepentingan karyawan dan perusahaan (seperti tunjangan istri dan anak). 3.Penyajian laporan data gaji karyawan secara periodik. 4.Kemudahan pencetakan slip gaji karyawan.
  • 6. Algoritma 1. Mulai 2. Inputkan Nomor Induk Pegawai, Nama Pegawai dan Jabatan 3. Inputkan Status 4. Jika status = 1 maka inputkan jumlah anak, jika status =2 maka langsung ke menu slip gaji 5. Output slip gaji 6. Jika ingin menghitung gaji lagi maka tekan Y, jika tidak tekan N 7. Selesai.
  • 7. Mulai Inputkan NIP, Nama Pegawai dan Jabatan Jabatan = 1 Jabatan = 2 Gaji Pokok Rp 3.000.000 Inputkan Status Gaji Pokok Rp 5.000.000 Jabatan = 3 Gaji Pokok Rp 2.800.000 Jabatan = 4 Gaji Pokok Rp 2.800.000 Jabatan = 5 Gaji Pokok Rp 2.500.000 A Jabatan = 6 Gaji Pokok Rp 2.200.000 Jabatan = 7 Gaji Pokok Rp 1.700.000 Status = 1 Tunjangan Istri 15% * gaji pokok Jmlanak > 3 Tunjangan Anak 5% * gaji pokok Tunjangan Anak = 0
  • 8. Hitung Total Gaji Gaji+ti+ta Hitung Gaji Lagi? Selesai B Kembali Ke-A
  • 9. program tunjangan; uses crt; label input, print, bye; var nm,no,jab :string; gj,ti,ta,totgj :real; stat,jmlank,i,lama :integer; yn : char; begin mulai: clrscr; gotoxy(25,1); writeln(' =============================='); gotoxy(25,2); writeln('- UJIAN TENGAH SEMESTER PASCAL -'); gotoxy(25,3); writeln(' =============================='); gotoxy(35,4); writeln('1. Haryati'); gotoxy(35,5); writeln('2. Rendi'); writeln;
  • 10. writeln(' ÛÛÛÛÛÛÛÛÛÛÛÛ '); writeln(' ÛÛÛÛÛÛÛÛÛÛÛÛÛÛ '); writeln(' Û ÛÛÛÛ ÛÛÛÛÛÛÛÛÛ '); writeln(' ÛÛ ÛÛÛÛ ÛÛÛÛÛÛÛÛÛÛ '); writeln(' ÛÛÛ ÛÛÛÛ ÛÛÛÛÛÛÛÛÛÛÛ '); writeln(' ÛÛÛÛ ÛÛÛÛ ÛÛÛÛÛÛÛÛÛÛÛÛ '); writeln(' ÛÛÛÛÛ ÛÛÛÛÛÛÛÛÛÛÛÛÛ'); writeln(' ÛÛÛÛÛ ÛÛÛÛ Û ÛÛÛÛÛÛÛ'); writeln(' ÛÛÛÛÛ ÛÛÛÛ Û ÛÛÛÛ ÛÛÛÛÛÛ'); writeln(' ÛÛÛÛÛ ÛÛÛÛ Û ÛÛÛÛ ÛÛÛÛÛÛ'); writeln(' ÛÛÛÛ ÛÛÛÛ Û ÛÛÛÛÛÛ '); writeln(' ÛÛÛÛÛÛÛÛÛÛ ÛÛÛÛÛÛÛÛ '); writeln(' ÛÛÛÛÛÛÛÛÛ Û ÛÛÛÛÛÛ '); writeln(' ÛÛÛÛÛÛÛÛ ÛÛ ÛÛÛÛ '); writeln(' ÛÛÛÛÛÛÛ ÛÛÛ ÛÛ '); writeln(' ÛÛÛÛÛÛÛÛÛÛÛÛ '); gotoxy(33,24); write('Ingin Memulai(y/n) : ');readln(yn); if (yn='Y')or(yn='y') then goto input else if (yn='N')or(yn='n') then goto bye; input: clrscr; textcolor(green); gotoxy(15,1); writeln(' ======================================================'); textcolor(white); gotoxy(15,2); writeln('- PROGRAM PERHITUNGAN GAJI DAN TUNJANGAN ANAK ISTRI -'); textcolor(green); gotoxy(15,3); writeln(' ======================================================');
  • 11. textcolor(white); gotoxy(1,5); writeln('- Masukkan data sesuai pada ketentuan berikut -'); textcolor(green); writeln('_______________________________________________') ; textcolor(yellow); writeln(' Jabatan'); textcolor(white); writeln(' 1. Direktur'); writeln(' 2. Wakil Direktur'); writeln(' 3. Sekertaris'); writeln(' 4. Bendahara'); writeln(' 5. Kepala Bagian'); writeln(' 6. Karyawan'); writeln(' 7. 0B'); writeln(''); textcolor(yellow); writeln('Status'); textcolor(white); writeln(' 1. Kawin '); writeln(' 2. Tidak Kawin '); textcolor(green); writeln('______________________________________________'); textcolor(white); gotoxy(1,23); write('Nomor Induk Pegawai : ');readln(no); write('Nama Pegawai : ');readln(nm); write('Jabatan Pegawai : ');readln(jab); if jab='1' then gj:=5000000 else if jab='2' then gj:=3000000 else if jab='3' then gj:=2800000 else if jab='4' then gj:=2800000 else if jab='5' then gj:=2500000 else if jab='6' then gj:=2200000 else if jab='7' then gj:=1700000; writeln('Gaji Pokok : Rp. ',gj:0:2); write('Status Perkawinan : ');readln(stat); case stat of 1 :begin ti :=(15/100)*gj; write('Jumlah Anak : ');readln(jmlank); if (jmlank >=3) then ta :=(5/100)*gj else if (jmlank <3) then ta :=0; end; 2 :Begin ti :=0; ta :=0; end; end;
  • 12. writeln; textcolor(green); writeln('PLEASE WAIT..!!!:'); totgj:=gj+ta+ti; for i:= 1 to 28 do begin textcolor(i); lama:=100; delay(lama);write('>>>'); end; begin print: clrscr; textcolor(white); gotoxy(13,1); writeln('======================o0 SLIP GAJI 0o====================='); gotoxy(13,3); writeln('Nama : ',nm); gotoxy(13,4); writeln('NO.Karyawan : ',no); gotoxy(13,5); if jab='1' then jab:='Direktur' else if jab='2' then jab:='Wakil Direktur' else if jab='3' then jab:='Sekertaris' else if jab='4' then jab:='Bendahara' else if jab='5' then jab:='Kepala Bagian' else if jab='6' then jab:='Karyawan' else if jab='7' then jab:='OB'; writeln('Jabatan : ',jab); gotoxy(13,6);
  • 13. writeln('+========================================================+'); gotoxy(13,7); writeln('| Rincian Gaji | Jumlah |'); gotoxy(13,8); writeln('+========================================================+'); gotoxy(13,9); writeln('|Gaji Pokok :|Rp ',gj:8:0,' |'); gotoxy(13,10); writeln('|Tunjangan Anak :|Rp ',ta:8:0,' |'); gotoxy(13,11); writeln('|Tunjangan Istri :|Rp ',ti:8:0,' |'); gotoxy(13,12); writeln('| :| |'); gotoxy(13,13); writeln('+========================================================+'); gotoxy(13,14); writeln('|Total Gaji Bersih :|Rp ',totgj:8:0,' |'); gotoxy(13,15); writeln('+========================================================+'); gotoxy(13,17); writeln('Note : Gaji anda sudah termasuk PPN 5%'); gotoxy(13,19); write('Apakah anda ingin menghitung gaji lagi?(y/n) : ');readln(yn); if (yn='y') or (yn='Y') then goto input else if (yn='n') or (yn='N') then goto bye; end; begin bye: clrscr; gotoxy(20,1); writeln('Terima Kasih Telah Menggunakan Program Ini'); end; readln; end; end.