<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8" />
<meta
name=”author” Content=”Cüneyt KORKUSUZ” />
<title>YGS Puan Hesaplama</title>
</head>
<body>
<form id="form1" name="form1"
method="post" action="">
<table
width="500" border="1" align="center"
cellpadding="5" cellspacing="1">
<tr>
<th
colspan="3" scope="col">ygs puan hesaplama</th>
</tr>
<tr>
<th
scope="row"> </th>
<td>dogru</td>
<td>yanlıs</td>
</tr>
<tr>
<th
scope="row">matematık</th>
<td><label
for="k1"></label>
<input
name="k1" type="text" id="k1" value="0"
/></td>
<td><label
for="k2"></label>
<input
name="k2" type="text" id="k2" value="0"
/></td>
</tr>
<tr>
<th
scope="row">fen</th>
<td><label
for="k3"></label>
<input
name="k3" type="text" id="k3" value="0"
/></td>
<td><label
for="k4"></label>
<input
name="k4" type="text" id="k4" value="0"
/></td>
</tr>
<tr>
<th
scope="row">sosyal</th>
<td><label
for="k5"></label>
<input
name="k5" type="text" id="k5" value="0"
/></td>
<td><label
for="k6"></label>
<input
name="k6" type="text" id="k6" value="0"
/></td>
</tr>
<tr>
<th scope="row">turkce</th>
<td><label
for="k7"></label>
<input
name="k7" type="text" id="k7" value="0"
/></td>
<td><label
for="k8"></label>
<input
name="k8" type="text" id="k8" value="0"
/></td>
</tr>
<tr>
<th
scope="row">ygs1
<input
type="radio" name="radio" id="radio"
value="a1" />
<label
for="radio"></label></th>
<td>ygs2
<input
type="radio" name="radio" id="radio2"
value="a2" /></td>
<td>ygs3
<input
type="radio" name="radio" id="radio3"
value="a3" /></td>
</tr>
<tr>
<th
scope="row">ygs4
<input
type="radio" name="radio" id="radio4"
value="a4" /></th>
<td>ygs5
<input
type="radio" name="radio" id="radio5"
value="a5" /></td>
<td>ygs6
<input
type="radio" name="radio" id="radio6"
value="a6" /></td>
</tr>
<tr>
<th
colspan="3" scope="row"><input
type="submit" name="button" id="button"
value="hesapla" />
<?php
$matdogru=$_POST["k1"];
$matyanlis=$_POST["k2"];
$fendogru=$_POST["k3"];
$fenyanlis=$_POST["k4"];
$sosdogru=$_POST["k5"];
$sosyanlis=$_POST["k6"];
$turkdogru=$_POST["k7"];
$turkyanlis=$_POST["k8"];
$matnet=$matdogru-($matyanlis/4);
$turknet=$turkdogru-($turkyanlis/4);
$sosnet=$sosdogru-($sosyanlis/4);
$fennet=$fendogru-($fenyanlis/4);
$secim=$_POST["radio"];
if($secim=="a1")
{
$ygs1=100.160+($matnet*3.998)+($fennet*2.999)+($sosnet*1)+($turknet*1.999);
if($ygs1>=180)
{
echo
"sonuç=".$ygs1."---"."LYS ye
girebilirsiniz";
}
if($ygs1<180)
{
echo
"sonuç=".$ygs1."---"."Barajı geçemediniz.LYS ye
giremezsiniz";
}
}
if($secim=="a2")
{
$ygs2=100.160+($matnet*2.999)+($fennet*3.998)+($sosnet*1)+($turknet*1.999);
if($ygs2>=180)
{
echo
"sonuç=".$ygs2."---"."LYS ye
girebilirsiniz";
}
if($ygs2<180)
{
echo
"sonuç=".$ygs2."---"."Barajı geçemediniz.LYS ye
giremezsiniz";
}
}
if($secim=="a3")
{
$ygs3=100.160+($matnet*1.999)+($fennet*1)+($sosnet*2.999)+($turknet*3.998);
if($ygs3>=180)
{
echo
"sonuç=".$ygs3."---"."LYS ye
girebilirsiniz";
}
if($ygs3<180)
{
echo
"sonuç=".$ygs3."---"."Barajı geçemediniz.LYS ye
giremezsiniz";
}
}
if($secim=="a4")
{
$ygs4=100.160+($matnet*1.999)+($fennet*1)+($sosnet*3.998)+($turknet*2.999);
if($ygs4>=180)
{
echo
"sonuç=".$ygs4."---"."LYS ye
girebilirsiniz";
}
if($ygs4<180)
{
echo
"sonuç=".$ygs4."---"."Barajı geçemediniz.LYS ye
giremezsiniz";
}
}
if($secim=="a5")
{
$ygs5=100.120+($matnet*3.299)+($fennet*1)+($sosnet*1.999)+($turknet*3.699);
if($ygs5>=180)
{
echo
"sonuç=".$ygs5."---"."LYS ye
girebilirsiniz";
}
if($ygs5<180)
{
echo
"sonuç=".$ygs5."---"."Barajı geçemediniz.LYS ye
giremezsiniz";
}
}
if($secim=="a6")
{
$ygs6=100.120+($matnet*3.699)+($fennet*1.999)+($sosnet*1)+($turknet*3.299);
if($ygs6>=180)
{
echo
"sonuç=".$ygs6."---"."LYS ye girebilirsiniz";
}
if($ygs6<180)
{
echo
"sonuç=".$ygs6."---"."Barajı geçemediniz.LYS ye
giremezsiniz";
}
}
?>
</th>
</tr>
</table>
</form>
</body>
</html>
Hiç yorum yok :
Yorum Gönder
Yorumunuz uygun bulunduğu takdirde en kısa zamanda yayınlanacaktır.