This is default featured slide 1 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 2 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 3 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 4 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 5 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

Rabu, 24 Februari 2016

PROGRAM DIAMOND BELAH KETUPAT

program dbk;
uses crt;
var
a,b,c,d:integer;
begin
clrscr;
writeln('---By:David John Herik---');
write('Input :'); readln(a);
begin
for b:=1 to a do
begin
for c:=(a-1) downto b do
begin
write(' ');
end;
for c:=1 to b do
begin
write('*','');
end;
begin
for c:=(b-1) downto 1 do
write('*','');
end;
writeln('');
end;
begin
for b:=(a-1) downto 1 do
begin
for d:=(a-1) downto b do
begin
write(' ');
end;
for c:=b downto 1 do
begin
write('*','');
end;
begin
for c:=1 to (b-1) do
write('*');
end;
writeln(' ');
end;
end;
end;
readln;
end.

output :

Share:

Selasa, 23 Februari 2016

Perhitungan Gaji

Ketentuan Soal :
1. Nama Di input
2. Kode Di input
3. Gaji Di Input
4. Jabatan di input , 
Jabatan            Tunjangan
Direktur           20 % dari gaji
Karyawan           10% dari gaji
OB                 5% dari gaji

3. Dikenakan PPN 30 % dari gaji
4. Gaji Total didapat dari : (gaji + tunjangan) – PPn
 
jawab:

program gaji;
uses crt;
var
nama,jb,kode:string;
gj:longint;
tj,ppn,gt:real;
begin
clrscr;
write('Input Nama Pegawai :'); readln(nama);
write('Input Kode Pegawai :'); readln(kode);
write('Masukkan Jabatan :'); readln(jb);
write('Gaji Pegawai :Rp.'); readln(gj);
if (jb='Direktur') or (jb='direktur') then
tj:=0.2*gj
else if (jb='Karyawan') or (jb='karyawan') then
tj:=0.1*gj
else
tj:=0.05*gj;
writeln;
writeln('--------------------------------------');
writeln('Gaji Bersih Pegawai :Rp.',gj);
writeln('Tunjangan Pegawai :Rp.',tj:8:2);
ppn:=0.3*gj;
writeln('PPN 30% :Rp.',ppn:8:2);
gt:=(gj+tj)-ppn;
writeln('Total Gaji keseluruhan :Rp.',gt:8:2);
readln;
end.

Output:

Share:

fans

Blogger templates