CAREFULLY READ ALL OF THIS PAGE BEFORE STARTING THE ASSIGNMENT
Cans of luncheon meat (e.g. Spam) are quite often irregularly shaped with a special tool on top to open them:
Can of Spam
You can estimate the volume (in cubic centimeters) of a can of Spam by multiplying the height by the width by the breadth of the can (all measurements in centimeters).
Today's assignment is a team assignment.
This is the deal - whichever team completes the assignment most correctly and in the shortest time, that team's leader will be designated "Top Student" for the CSCI165A Summer 2009 Semester and will be invited on the Awards Ceremony cruise on the last day of classes. The winning team members receive one bonus point - to be calculated into their grade after the end of the course.
To be fair to all teams, the instructor will give no help at all on this assignment - she will be drinking coffee and surfing the net...
No, seriously now...
I will be seeing students individually to discuss their performance on the course so far, and return any unreturned papers.
The assignment instructions:
Write a PHP program to output the volume of Spam that can fit into a can
of height 8.1 cm, width 10.5 cm and breadth 4.2 cm.
Your program should also calculate and output how many 1cc cubes can be cut from the same volume of Spam, to serve to the guests on the Coquitlam College Awards Cruise.
The program has no inputs. Values are assigned to variables which are then processed in your program. Comments in the code list all team members.
Study the PHP resources:
Example PHP Scripts (i.e. PHP programs)
DO NOT use the Internet Explorer browser for this course.
IE doesn't display the course resources correctly.
You have been warned.
Introduction to PHP
PHP Tutorial - PHP Basic Section - Topics to study:
Skim these resources:
PHP Looping - for
PHP Looping - while
Deadline is end of class today.
The team leader ONLY will submit this assignment
by entering the URL to the PHP file in the online text box.
(Scroll down this page and click on the
"Edit my submission" button.)
You will need to upload your PHP file to your webspace on the webserver before it can be run and tested.
PHP is NOT installed on the computers in Room 1.