Assignments, Projects and Exams
CSIT2100-PHP for Spring 2010
General Notes - for this course I want all of your php web pages
to be in a folder named php, which is inside of your
public_html folder on trinity. No
filename should contain spaces (rename any files that do). Your
homework files must be named EXACTLY as I specify
below (same upper/lower case and no extra symbols).
- hw15 -- Deadline: Friday, May 14 [10 points]
-
The assignment involves doing Database Queries with
mysql and PHP. Instructions will be given in class
but you can download a starting point for your PHP
at hw15.
- hw14 -- Deadline: Tuesday, May 4 [10 points]
-
The assignment involves use of Cookies from chapter 7.
You can download the
specifications for hw14.
- hw13 -- Deadline: Friday, April 30 [10 points]
-
The assignment involves use of file I/O, regular
expressions, and more from chapter 6. You can download the
specifications for hw13.
- hw12 -- Deadline: Monday, April 19 [10 points]
-
The assignment involves use of associative arrays
described in chapter 5. You can download the
specifications for hw12.
- hw11 -- Deadline: Monday, April 12 [10 points]
-
The assignment involves use of sequential arrays
described in chapter 5. You can download the
specifications for hw11.
- EXAM #2 -- Date: Thurs, April 8
-
Multiple choice exam covering chapters 3-4.
- hw10 -- Deadline: Friday, April 2 [10 points]
-
Ideas were given in class for this assignment, an elementary
arithmetic problem generator. You can download more detailed
specifications for hw10.
- hw09 -- Deadline: Friday, March 12 [10 points]
-
Specs were given in class for a page that generates a checkerboard
square based on textbox form elements at the top for max width,
number of rows, number of columns, and the two alternating colors.
Set default values to 600, 8, 8, red, and black, respectively.
If number of rows or columns are less than 1, then set them to 1.
Textbox values that were entered should continue to remain after
the submit button is pressed. The checkerboard square should be
a centered table with a border of 1, beneath the form part.
- hw08 -- Deadline: Tuesday, March 9 [10 points]
-
Download specifications for hw08.
- hw07 -- Deadline: Thursday, March 4 [10 points]
-
Download specifications for hw07.
- EXAM #1 -- Date: Tues, March 2 [25 points]
-
Multiple choice exam covering chapters 1-2.
- hw06b -- Deadline: Thurs noon, Feb 25 [10 points]
-
Using PHP functions from Chapter 2, update bmi.php, hw05a.php,
and hw05b.php files (and test them using the hw06.html forms)
with the following changes:
- all textbox input values should have leading/trailing spaces removed
- in bmi.php, capitalize the first letter of name and lower case the rest
- in bmi.php, add a line that displays the length of the person's name
- round displayed values to 2-decimal places in the Volume calculator,
1-decimal place in the BMI calculator, and the nearest integer in the
Grade calculator. This includes rounding the input values that you display
as well as the calculated values, but don't actullay change the input
values until AFTER doing the calculations (I only want the rounding done
on what is displayed).
- hw06 -- Deadline: Tues 9am, Feb 23 [10 points]
-
Create an HTML form page called hw06.html which has
three separate forms (separated by <hr/> horizontal lines) for
the BMI Calculator (bmi.php), the Volume of a Cylinder Calculator
(hw05a.php), and the Grade Average Calculator (hw05b.php).
Use text box inputs for everything except for the BMI height
entries. For that, enter the feet and inches as separate drop down
selection boxes.
- hw05 -- Deadline: Tues 9am, Feb 16 [10 points]
-
Do the hands on excercises 1a and 1b on page 38. Call your
files hw05a.php and hw05b.php. Put an
appropriate title, heading, and subheading, consistent with
what you did in hw04 (that is, include your name in the subheading).
Put links in home.html for homework 5a and 5b, consistent
with other homework links. For simplicity, just assign the
variables ($r, $h, $grade1, etc) within your script to the
specific values listed on page 38, without getting values
from the URL (that is, you will not use $_GET for this).
- hw04 -- Started in-class Feb 11 to be finished by Tues, 9am, Feb 16 [10 points]
-
Create file named bmi.php in your php directory
based on the MS Word Doc
specifications.
Add a link to this web page in your home.html page.
The link should identify homework 4, consistent with other
homework links (although the file is named bmi.php).
The link's href URL must give sample values for all variables
that your PHP file is getting (or else you see error messages)
in the generated web page.
- hw03 -- Deadline: Feb 4 [10 points]
-
Create file named hw03.php for the
hands-on excercise 5 on page 17, with the
following additional specifications:
-
The first two lines (up to the opening body tag) and the
last line (with the body and html closer tags) are to be
placed outside of the php script (that is, regular html).
The other lines must be generated from within the php
script tags.
-
The two br tags should be updated to be properly self-closed
thats (i.e., change any <br> to <br/>).
-
When someone does a View Source on the web page they see,
the html source should look IDENTICAL to that on page 17.
This means that it should appear as 14 lines with the ul
and li tags indented by 3-spaces.
- hw02 -- Deadline: Feb 4 [10 points]
-
Create file named hw02.php and enter EXACTLY what is
in chapter 1 exercise 4. Fix the errors one by one. Create
an MS Word doc file (with your name, date, and course at the top)
and number each of the errors you fixed (one by one) and paste
the error message that you before you fixed it.
NOTE: only fix
the line and the problem that each error message refers to.
When finished, save, close, and then submit your Word doc.
Also, modify your hw02.php file so that it says somewhere on
it that the errors have now been fixed and change all of the
<br> to <br/> tags so that they are self-closing
(the new XHTML standard).
- hw01 -- Deadline: Feb 3 [5 points]
-
Create file named hw01.php for the
hands-on excercise 2 on page 16.
- hw00 -- Deadline: Feb 2 [10 points]
-
Create a personal page named home.html in your php
directory that shows off a variety of things covered
in the core slides on XHTML and CSS.
With each new homework, add a link to this class home page
(hw01, hw02, etc) and test that it works.
Return to the course homepage
Return to the instructor's main homepage