Print.php
<!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=iso-8859-1" />
<title>Assignment039</title>
</head>
<body>
The driving students where just given a challege. The person who reached more than <br />
120mph in one mile with their cars would receive a brand new Truck. The ones who fail <br />
gets a gallon of gas.
<br /><br />
Rauls speed=149<br />
Manuels speed=113<br />
Rigos speed=126<br />
Adrians speed=119<br />
Ivans speed=121<br />
Luiss speed=97<br />
<br />
<br />
<?php
$raulsspeed=149;
$manuelsspeed=113;
$rigosspeed=126;
$adriansspeed=119;
$ivansspeed=121;
$luissspeed=97;
if ($raulsspeed >= 120 )
{
print("Raul, you get a brand new Dodge Ram.<br />");
}
else
{
print("Raul, nice you get some gas.<br />");
}
if ($manuelsspeed >= 120)
{
print("Manuel, you get a brand new GMC Sierra.<br />");
}
else
{
print("Manuel, get a faster car but have some gas.<br />");
}
if ($rigosspeed >= 120)
{
print("Rigo, you get a brand new Ford-250.<br />");
}
else
{
print("Rigo, get a life and here some gas.<br />");
}
if ($adriansspeed >= 120)
{
print("Adrian, you get a brand new Chevy Colorado.<br />");
}
else
{
print("Adrian, here free gas.<br /> ");
}
if ($ivansspeed >= 120)
{
print("Ivan, you get a brand new Chevy Silverado.<br />");
}
else
{
print("Ivan, nice ride but slow car.<br />");
}
if ($luissspeed >= 120)
{
print("Luis, you get a brand new Ford F-150.<br />");
}
else
{
print("Luis, you get a free gallon of gas.<br />");
}
?>
</body>
</html>