In this project you will create and modify a script that sto

In this project, you will create and modify a script that stores interest rates in an array. Create a new document in your text editor. Type the declaration element header information and

Solution

SAVE THE BELOW CODE IN A DOCUMENT AND NAME IT AS InterestArray.php

<!DOCTYPE html>
<html lang=\"en\">
<head>
<meta charset=\"utf-8\">
<title>Interest Array</title>
</head>

<body>
<?php
$RatesArray=array(.0725,.0750,.0775,.0800,.0825,.0850,.0875); //Initialising and adding values to RatesArray
$i=0;
while($i<7){ //running a for loop to print the values of array
echo $RatesArray($i); //this statement prints output to the screen
$i++;
}
?>
</body>

</html>

 In this project, you will create and modify a script that stores interest rates in an array. Create a new document in your text editor. Type the declaration el

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site