3. Write a script that declares and assigns floating-point variables for the interest rate you are paying on your car, credit card, mortgage, student loan, or some other type of loan. Create floating-point variables for at least three types of loans. If you do not have any type of loan with an interest rate, look in your local newspaper or on the Internet for current interest rates for morgages and autos. Use echo ( ) statements to print each variable, along with a description of the loan, and the gettype ( ) function to make sure each variable is of the double data type.
**************************************************************
CODES:
<?php
$fixedRateMortgage = 5.03;
$homeEquity = 8.49;
$autoLoan = 7.33;
$cdInterest = 1.28;
echo "30 year fixed rate mortgage loan: ".$fixedRateMortgage."%. This figure is of the '".gettype($fixedRateMortgage)."' data type.<br />";
echo "30 year home equity loan: ".$homeEquity."%. This figure is of the '".gettype($homeEquity)."' data type.<br />";
echo "48 month new auto loan: ".$autoLoan."%. This figure is of the '".gettype($autoLoan)."' data type.<br />";
echo "6 month CD interest rate: ".$cdInterest."%. This figure is of the '".gettype($cdInterest)."' data type.<br />";
echo (strtoupper("source:"))." <a href=\"http://www.bankrate.com/\">BankRate.com</a>, as of 10/15/09";
?>
**************************************************************
ANSWER:
30 year fixed rate mortgage loan: 5.03%. This figure is of the 'double' data type.