constants.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>Constants.php</title>
</head>
<body>
<?php
//Interest Calculation
//Set the variables and constants
define("INTEREST_RATE", .19);
$balance1=115000.00;
$balance2=15000.00;
$balance3=177000.00;
$balance4=10000.00;
//Calculate the annual interest amounts for each balance
$annualinterestamount1 = $balance1*INTEREST_RATE;
$annualinterestamount2 = $balance2*INTEREST_RATE;
$annualinterestamount3 = $balance3*INTEREST_RATE;
$annualinterestamount4 = $balance4*INTEREST_RATE;
//Display browser output
print("The annual interest due on your first balance of ".$balance1);
print(" is ". $annualinterestamount1). " dollars.";
print("<br><br>");
print("The annual interest due on your second balance of ".$balance2);
print(" is ". $annualinterestamount2). " dollars.";
print("<br><br>");
print("The annual interest due on your third balance1 of ".$balance3);
print(" is ". $annualinterestamount3). " dollars.";
print("<br><br>");
print("The annual interest due on your fourth balance of ".$balance4);
print(" is ". $annualinterestamount4). " dollars.";
print("<br><br>");
?>
</body>
</html>