Else Statment.php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Else Statement</title>
</head>
<body>
In Mr. Mitchels class we had a test and we got our results back. The kids who got an A would get extra creidit and every one... should try better next time.
<br>
<br>
Here are some of the results:
<br>
Alica 80.5<br>
Austen 50<br>
Ben 73<br>
Britney 85<br>
Hilda 79<br>
Jose 100<br>
Kenny 90<br>
Maira 75<br>
<br>
<br>
<?php
$alicia=80.5;
$austen= 50;
$ben=73;
$brittney= 85;
$hilda=79;
$jose=100;
$kenny=90;
$maira=75;
if ($alicia >89.5)
{
print("Alicia, nice job!<br>");
}
else
{
print("Alicia, just a little further and you could have gotten the extra creidit.<br>");
}
if ($austen >89.5)
{
print("Austen, nice job!<br>");
}
else
{
print("Austen, I always knew that you could not do it.<br>");
}
if ($ben >89.5)
{
print("Ben, nice job!<br>");
}
else
{
print("Ben, need to try harder if you want get an A.<br>");
}
if ($brittney >89.5)
{
print("Brittney, nice job!<br>");
}
else
{
print("Brittney, nice job you did better than Alica.<br>");
}
if ($hilda >89.5)
{
print("Hilda, nice job!<br>");
}
else
{
print("Hilda, study harder next time.<br>");
}
if ($jose >89.5)
{
print("Jose, is so pro!<br>");
}
else
{
print("Jose, is so pro.<br>");
}
if ($kenny >89.5)
{
print("Kenny, still can not campare to your bro.<br>");
}
else
{
print("Kenny, still can not campare to your bro.<br>");
}
?>
</body>
</html>