<?php
require_once 'chapter1functions.php';
require_once "../mainfunctions.php";
printHead("1", "Lab 1.9-1.10", "Write functions| Use server-side includes");
$itemPrice=99.99;
$qty=3;
echo "<p>You have ". $qty ." items @ \$" . $itemPrice . " each...</p>";
$pretaxtotal=$itemPrice * $qty;
echo"<p>The subtotal: \$". $pretaxtotal . "</p>";
$taxAmtScriptSide=function1tax($itemPrice,$qty);
//calling tax function and passing args price and qty
echo"<p>The tax Amt: \$". $taxAmtScriptSide . "</p>";
$finaltotal=$itemPrice * $qty + $taxAmtScriptSide;
echo"<p>Your final Total: \$". $finaltotal . "</p>";
echo"<p>----------------------------
<br>Thanks for shopping!</p>";
printFootWithCodeExample("1.9-1.10code.php");
?>