TUGAS WEB PROGRAMMING OUTPUT

Minggu, 09 Desember 2012

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>

<h1> NILAI AKHIR MAHASISWA </h1>
<?
    $nim         =  $_REQUEST['nim']  ;
    $nama        =  $_REQUEST['nama'] ;
    $makul       =  $_REQUEST['makul'] ;
    $jumlah     =  $_REQUEST['jumlah'] ;
    $tugas       =  $_REQUEST['tugas'] ;
    $uts         =  $_REQUEST['uts'] ;
    $uas         =  $_REQUEST['uas'] ;
   
    echo 'NIM =';
    echo "$nim<br>";
    echo 'NAMA =';
    echo "$nama<br>";  
    echo 'MATA KULIAH =';
    echo "$makul<br>";
    echo 'KEHADIRAN =';
    echo "$jumlah<br>";
    echo 'NILAI TUGAS =';
    echo "$tugas<br>";
    echo 'NILAI UTS =';
    echo "$uts<br>";
    echo 'NILAI UAS =';
    echo "$uas<br>";
    $akhir=((0.1*$jumlah)+(0.2*$tugas)+(0.35*$uts)+(0.35*$uas));
    echo 'NILAI AKHIR =';
    echo "$akhir";
    ?>
    <p align="left"><a href=input.php>Kembali</a></p>
   
   
>
</body>
</html

0 komentar:

Posting Komentar

 
Dunia Suporter Indonesia © 2011 | Designed by for and