Rabu, 18 Maret 2020

Partikum Modul III

Praktikum Modul III
Membuat Program PHP


<?php
echo "Nilai Matematika";

$nim = '19103146';
$nama = 'Luh Made Jero Nanda Ananda';
$kelas = 'AA';
$tugas = '80';
$kuis = '75';
$uts = '85';
$uas = '75';


$total = $tugas + $kuis + $uts + $uas;
$akhir = ($tugas*0.2)+($kuis*0.2)+($uts*0.25)+($uas*0.35);

$batas = "================Nilai Akumulasi Mahasiswa===============<br>";

echo "NIM           : ", $nim ,"<br>";
echo "Nama          : ", $nama, "<br>";
echo "Kelas         : ", $kelas, "<br>";
echo "Nilai Tugas   : ", $tugas, "<br>";
echo "Nilai Kuis    : ", $kuis, "<br>";
echo "Nilai UTS     : ", $uts, "<br>";
echo "Nilai UAS     : ", $uas, "<br>";
echo "Total Nilai   : ", $total, "<br>";
echo "Nilai Akhir   : ", $akhir, "<br";

?>






Tidak ada komentar:

Posting Komentar