Thursday, March 30, 2006

At noon

There are 18 students in the class...each student will present for one minute. We will go in alphabetical order...

Starts at noon!!

Tuesday, March 28, 2006

Answers to quiz questions

1.
$numtoloop = 5;
$num = 0;
while($numtoloop > 0){
$num = $num + $numtoloop;
$numtoloop--;
}echo $num;
?>

2.

function programmer compliment(){
echo "You are a logical programmer!";
}

3.

function milespergallon($miles, $gallon){
$mpg = $miles / $gallon;
return $mpg;
}

Monday, March 27, 2006

Comment on your blog

Read this. Comment on your blog.

Project ideas

Think of an online business (different from your first group project).

Your idea has to be up here by the end of the period. Start working on your HTML page after thinking of you thought of your idea.

1. Sell used golf balls- David A.
2. Youth Group...Selling items - Jacob G.
3. Sell computer software for cheaper prices than retail - Mark O.
4. Magazines - Bjorn F
5. Custom apparel- Kristie P.
6. Antique and rare books- Erik A.
7. Bass Guitars - Kim A.
8. Candy - Steph P.
9. Bathing suits - Nathalie I.
10. Shoes and bags- Estefania M.
11. Vintage clothing - Amanda M.
12. Sports stuff- Brandon G.
13. Guitars-Hans V.
14. Music cds - Carlos C.
15. Cars - Mason N.
16. Used mp3 players - Luis M.

Quiz....finally

You have the code for the questions put on the blog. You need to memorize the code...we are going to have a quiz based on the questions tomorrow. The computers will be off, so it must be from memory.

After it is done you have to finish the HTML page for your business idea.

Sunday, March 26, 2006

In case you were interested in creating games...

Check this out.

Interested in the X-Box 360?

Check this out.

Friday, March 24, 2006

Study this for your quiz

1. Loop to determine sum of numbers to 0 example 5+4+3+2+1
give it 5
get back 15

2. Make a simple function to return text.

3. Function to calculate miles per gallon.

Thursday, March 23, 2006

You have to watch this!

Check this out!

Ajax write!

code..turn this into a working code

//Class lizard
class Lizard
{
public $length;
//must be capitalized!
public $weight_in_grams;
private $name;
private $sex;
private $willingness_to_mate;
private $laziness;
public $num_roaches_consumed;

//here we define functions

public function numlikelytoconsumeweekly($weight_in_grams, $laziness)
{
//400 gram lizard
//if the lizard is lazy at 400 grams it will eat 5 roaches
//if it is energetic 10
//at 600 grams it will eat 15 if lazy and 20 if not lazy
if ($weight_in_grams) {

} elseif ($weight_in_grams) {

} else {

}
}
}

Wednesday, March 22, 2006

On your blog

What is web 2.0?

Quiz on while loops and recursion on Friday

While loops and recursion...know the concepts.

We are working on a program to add all the numbers to zero starting from a certain point.

Example = 4+3+2+1=???

Monday, March 20, 2006

Congrats to our first winner!

Kudos to Mark O. who figured out the first code to display Fibonacci's numbers. He used an iterative design...that means we are still waiting for someone to write a recursive function in PHP!

Here's his output:

0
1
1
2
3
5
8
13
21
34
55
89
144
233
377
610
987
1597
2584
4181
6765
10946
17711
28657
46368
75025
121393
196418
317811
514229
832040
1346269
2178309
3524578
5702887
9227465
14930352
24157817
39088169
63245986
102334155
165580141
267914296
433494437
701408733
1134903170
1836311903
2971215073
4807526976
7778742049
12586269025
20365011074
32951280099
53316291173
86267571272
139583862445
225851433717
365435296162
591286729879
956722026041
1548008755920
2504730781961
4052739537881
6557470319842
10610209857723
17167680177565
27777890035288
44945570212853
72723460248141
1.1766903046099E+14
1.9039249070914E+14
3.0806152117013E+14
4.9845401187926E+14
8.0651553304939E+14
1.3049695449287E+15
2.111485077978E+15
3.4164546229067E+15
5.5279397008848E+15
8.9443943237915E+15
1.4472334024676E+16
2.3416728348468E+16
3.7889062373144E+16
6.1305790721612E+16
9.9194853094755E+16
1.6050064381637E+17
...

Way to go!!

Sunday, March 19, 2006

What a great discovery

Check this out!

Open Laszlo!

Recursion...extremely important for computer science

The essence of computer science.

Friday, March 17, 2006

Now we begin on object oriented programming

Actually wikipedia has a decent intro to the subject. Read this, especially the section on object oriented programming.

Before you program...

We are going to discuss the preliminaries before coding...We will use this page.

Study the first chapter of the networking...you will need it for a quiz on Monday.

Thursday, March 16, 2006

Create a seven question javascript quiz...

Create a seven question quiz using this page.

Follow the instructions and put your quiz on the server. Leave a link to it on your blog.

Assignment for today

Finish reading all of chapter 1 here.

Answer these questions. Due tomorrow.

Wednesday, March 15, 2006

Final Extension

Code or comments on code due tomorrow March 16th 2006. Email me for the zipped code before midnight.

Tuesday, March 14, 2006

Alternative Assignment

I have decided to make an alternative assignment. You will choose which one to do. I answered every question and tested the code. If you would rather write a comment for each line of code (instead of writing the code yourself) you have that option. I will forward you a zipped up copy of the code. You must print it out with your comments following each line. Comments use two forward slashes //

Still due tomorrow.

Square area






php

$side = $_GET['side'];
$MPG = $side * $side;
echo $MPG;

?>


Clicking above will not work...blogger does not offer PHP support (that I know of) but you may use this PHP code as an example for your area coding question below.

To make the text box and submit button simply put this code in brackets <>:

INPUT TYPE = "TEXT" VALUE = "side" NAME = "side"
INPUT TYPE = "SUBMIT" VALUE = "CLICK HERE"

Monday, March 13, 2006

A Free Host For PHP

www.perfectfreewebhosting.com has lots of good features.

Sunday, March 12, 2006

Classwork/ Homework

No talking in class.

Include relevant comments with the programs. You are to select three of the following five.

1. Write a PHP program that compares the length of two words and returns which word is longer. strlen($string) is the most efficient and effective way to do this. Look at the code here.

2. Write a PHP program that compares a random number generated by the computer

srand(time());
$random = (rand()%9);
?>
between one and nine with a number entered from a user. The program must request the user to enter the number again and again until the user enters the same number as the program found. There are many ways to accomplish this.

3. Write a program that uses a for loop to display the first nine numbers that are divisible by three. Think about how many times this loop will need to run...

4. Write a program that asks the user for the radius of a circle and the length of a square. Your program will return the area of both and then a message telling the user by how much the larger of the two is than the smaller. use the squarearea.php program we wrote in class.

5. Write a program that requires the user to enter any word they desire. Store the word in a variable and if any letter in the word is 't' or 'v', return the string "INVALID WORD!"

You can request help via email but you may not discuss this work with other students. This is not a collaborative assignment. I will not waste class time by TALKING about such work. I've done too much it seems.

Due Wednesday.

Title your paper:

Last name, First name
Individual Fourth Nine Weeks PHP Assignment Number 1
Today's date

Before your code include the question. Only code that works will get full credit.

Friday, March 10, 2006

A quiz of your design...with PHP!

Follow the instructions here how to make a quiz with PHP. Individually you need to create a quiz about whatever you want...but make it something different from the Javascript quiz you made. Put it on the server in your folder and I will grade it next week. Keep it at 10 questions.

When you are finished make sure you work on your group's "PHP Store". You need to be able to at least view all the customers and items up to this point. I noticed many of you are struggling with this. Just take it one step at a time. First use the code from the blog in early February to connect with the tables you made with PHPMyAdmin. Then select what information you want using SQL. Then figure out how to format it. Use the code from the blog to go through the $result variable. Don't worry about updating information at this point...just display what's in the tables!

Have fun working on this and good luck on the FCAT. I'm sure you will all do great!

A quiz of your design...with PHP!

Follow the instructions here how to make a quiz with PHP. Individually you need to create a quiz about whatever you want...but make it something different from the Javascript quiz you made. Put it on the server in your folder and I will grade it next week. Keep it at 10 questions.

When you are finished make sure you work on your group's "PHP Store". You need to be able to at least view all the customers and items up to this point. I noticed many of you are struggling with this. Just take it one step at a time. First use the code from the blog in early February to connect with the tables you made with PHPMyAdmin. Then select what information you want using SQL. Then figure out how to format it. Use the code from the blog to go through the $result variable. Don't worry about updating information at this point...just display what's in the tables!

Have fun working on this and good luck on the FCAT. I'm sure you will all do great!

First of all look at what google bought!

Remember 'Writely' from class yesterday?? Google must've thought it was a good idea...

Thursday, March 09, 2006

Google Space Online

Read this.

Are you a nerd?

Take this test.

Read and evaluate each of these articles

http://ask.slashdot.org/article.pl?sid=06/02/17/2355231

Sunday, March 05, 2006

Looking for work?

Check here.

Saturday, March 04, 2006

Free word processing online

This is the direction computing is going...Apps online.

We are going to start learning Object Oriented Programming

Read this. It will be very important.

Open source software is secure

Read this.

Friday, March 03, 2006

slashdot

slashdot

Thursday, March 02, 2006

Login to PHPMyAdmin

Login to http://aoit/phpMyAdmin/

Login name: Your first name
Password: Your last name

I want you to make a table of all your favorite musicians and their recent releases.

Wednesday, March 01, 2006

You can mail forms to yourself!

How cool...I never knew that at all!