In this project, you create and modify a script that stores interest rates in an array.

1. Create a new document in your text editor.

2. Type the < !DOCTYPE> declaration, < html> element, header information, and < body> element. Use the strict DTD and "Interest Array" as the content of the < title> element.

3. Add the following standard PHP script delimiters to the document body:

< ?php
?>

4. Add the following statements to the script section:

$InterestRate1 = .0725;
$InterestRate2 = .0750;
$InterestRate3 = .0775;
$InterestRate4 = .0800;
$InterestRate5 = .0825;
$InterestRate6 = .0850;
$InterestRate7 = .0875;

5. Modify the statements you added in the preceding step so the variables are saved in an array named $RatesArray by using the array() construct. Also, add statements to the program that print the contents of each array element.

6. Save the document as InterestArray.php in the Projects directory for Chapter 3, and then validate it with the WDG HTML Validator. After the document is valid, close it in your text editor, and then open it in your Web browser to see how it renders.

7. Close your Web browser window.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.