soal1 output:
<?php
echo "PROGRAM HITUNG GAJI KARYAWAN";
$nk = "wahyuti";
$kerja = 9;
$gapok = 300000;
$tunj = $gapok * 0.05;
$lembur = ($kerja - 8) * 50000;
echo "<pre>
Karyawan yang bernama ……$nk
Honor yang diterima
\t\tGaji pokok Rp ... $gapok
\t\tTunjangan Jabatan Rp ...$tunj
\t\tjam kerja ...$kerja
\t\tHonor Lembur Rp .....$lembur
</pre>";
echo str_repeat("__", 30);
$tg = $gapok + $tunj + $lembur;
echo "+<br>Total Gaji (Gaji pokok + tunjangan + lembur) Rp ...$tg<br>";
?>
soal2
Comments