Friday, May 10, 2013

Final Project - A Panoply of Choices!

Final Project

Write a proposal for a project that will take you about 2 weeks to complete. You may choose a project in any of 3 areas of web design/development.
Choose one:
PHP
·         Propose, design, and code a useful PHP program
·         Ensure your project is challenging to you.
·         Do not choose something you can accomplish in one sitting.
·         Program must include a form and user input that is manipulated to produce output
·         Comment your code to explain each part
·         Demonstrate to the class
·         Use CSS to make the page attractive
·         Topic =  a school appropriate selection of your choice, approved by  Mr. Seiler
(X)HTML & CSS
·         Design and code a new website using (X)HTML and CSS.
·         Two, three or four column CSS layout. Use DIV Tags.
·         Design a color scheme.
·         Include 5 pages
·         Include an attractive logo that you designed.
·         Include a NAVBAR
·         Website must include REAL, AUTHENTIC content written by you. No ipsum lorem or copied/pasted content from other sources.
·         Ensure your project is challenging to you.
·         Do not choose something you can accomplish in one sitting.
·         Comment your code
·         Topic =  a school appropriate selection of your choice, approved by  Mr. Seiler
Wordpress  (Point and click web design; optional PHP and CSS Components)
·         Working with Mr. Seiler for the setup part, install and create a Wordpress blog on the St. Ed’s sehsapps web server.
·         Include a home page and 3 sub pages
·         Comment your code.
·         Include a menu system
·         Customize the website to your liking with a photo gallery, widgets, etc.
·         Topic =  a school appropriate selection of your choice, approved by  Mr. Seiler
·         Website must include REAL, AUTHENTIC content written by you. No ipsum lorem or copied/pasted content from other sources.
·         Ensure your project is challenging to you.
·         Do not choose something you can accomplish in one sitting.

Wednesday, May 8, 2013

Cash Register Flow Chart

Coding Flowchart

What follows is a Logical Flow of the PHP code, written in plain English, for the cash register program.

First rename the $_GET or $_POST variables. We do this to make them easier to work with in the code.



Note: Chkdisc is a special case, because it may be passed as a NULL (does not exist) value. Write code to set the chkdisc to a value > 0 if it is null.

Use a decimal, not a percent, when setting checkdisc



As of this point, you have 4 variables you are now working with:



$meal

$disc_perc (the decimal value, actually, of the discount)

$tax

$tip



Next, we use a SWITCH CASE statement to assign the value of the price to the meal. For example, if the meal chosen was SPAGHETTI, set the price to $5 or $14.50 or whatever you choose.



Note, we are “switching case,” i.e., checking the value of, the variable $meal



Next, we calculate the DOLLAR AMOUNT of the discount, using the value of the $disc_perc that we calculated earlier.



Note, the discount amount is calculated by multiplying:
$meal * $disc_perc



Next, we use simple math to calculate the BILL



Note: use $bill as the variable for holding the bill amount



Lastly, we print the variables onto the page using the ECHO statement.



The only catch here is the number format function, which I will show you, to print only two decimal places!

Well, don't just sit there!
Start Coding!

Sunday, May 5, 2013

Gents:
Make sure you have a hyperlink on your homepage that links to your "6 php" programs assignment. Finish all 6 of the progams (you can put them all on the same page) and then test each other's code.

Thursday, May 2, 2013

6 Phun Phun PHP Challenges for You!

Programs to accomplish this week are below.Advanced guys may work independently.

1) A PHP script to print your full name to the screen.
2) Print an approximation of pi to the screen.

3) Print the approximate circumference of the earth to the screen.

4) On what date is Easter in 2037? Print it to the screen.

5) Compose an email address validator such that the user enters an address and the computer validates it as a valid address. The computer will not check if the address actually EXISTS, just if it is in the proper format with no illegal characters.



6) Change the code to ask the user to enter a word and you will use the strlen ( ) function to count the letters in the string and tell the user how many letters he/she typed in.



Due: Mon.







Wednesday, May 1, 2013

1) Spend 5-8 minutes testing out Mr. Seiler's Multiplication Flash Card program for little kids.

2) Emend your code to display a person's first, last and middle name.

Wednesday, April 24, 2013