Exercise 1-1

Jan 14th, 2015
DotaCN
Category:
Engineering
Price: $10 USD

Question description

In this project, you will 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, headerinformation, 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 docu-ment 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. Using the array() construct, modify the statements you added in the preceding step so the variables are saved in an array named $RatesArray.Also, add statements to the pro-gram that display the contents of each array element.

6. Save the document as InterestArray.php in the Projects directory for Chapter 1, upload the document to the server,and then validate it with the W3C XHTML Validator. After the document is valid, open it in your Web browser to see how it renders.

7. Close your Web browser window


Tutor Answer

(Top Tutor) Daniel C.
(997)
School: Boston College
PREMIUM TUTOR

Studypool has helped 1,244,100 students

Summary
Quality
Communication
On Time
Value
kevin12622
Feb 22nd, 2017
" Goes above and beyond expectations ! "
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1822 tutors are online

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors