Computer

PHP/Oracle Development


Syllabus
Schedule
Reading
Discussion
Project
Test
Resource
Tip

Project II Simple PHP Program

Task:

In this project, I am asking you to write a simple PHP program. You will need to use the concepts learned from Chapters 3 and 4.

Here is the problem: You have a rectangular lot (25 yard x 20 yard). You need to calculate the area of your rectangular lot.

Program Specifications:

Variable PHP Program Variable Value
Length $length 25 (float type)
Depth $depth 20 (float type)
Area $area To be calculated by multiplying the length and depth.

Please note the required data type above.

Required Output for Your PHP Program:

Length=25.0 yard (25 points)

Depth=20.0 yard (25 points)

Area=500.0 sq. yard (as calculated) (50 points)

 

Required PHP Program:

Write one PHP program that accomplishes the above task. The program will be named according to the following naming convention.

 

Standard for File Name: We are going to practice a typical software development practice. That is, everyone is going to use a standardized convention for naming your project files. Please name your file as firstname_lastname_project2.php, where firstname and lastname are your first and last name, respectively, and "_" is underscore. The file naming convention will be enforced throughout this semester. Five (5) points will be taken off if the file is not named according to the convention.

Please submit your project on D2L according to the deadline established on the course schedule.