If anyone wants to try video game programming with C++ over the break, click here.
You'll be surpassing me...I've never done C++ video game programming! Let me know how it goes.
Thursday, March 29, 2007
Wednesday, March 28, 2007
Code for area
$iloveshapes = $_POST['shape'];
echo $iloveshapes;
if($iloveshapes=="circle")
{
//formula for area of square
echo (($_POST['length']*$_POST['length'])*3.1416);
}
else
{
//we need the radius of the circle
echo "Does this work?";
echo $_POST['length']* $_POST['length'];
//pi*r to the second power
echo $iloveshapes;
if($iloveshapes=="circle")
{
//formula for area of square
echo (($_POST['length']*$_POST['length'])*3.1416);
}
else
{
//we need the radius of the circle
echo "Does this work?";
echo $_POST['length']* $_POST['length'];
//pi*r to the second power
Assignment
http://www.davidcfreer.com/~David/shapes.htm
Find the perimeter or circumference of square or circle.
When finished post a link to your blog.
Find the perimeter or circumference of square or circle.
When finished post a link to your blog.
Tuesday, March 27, 2007
Today's assignment
Students are to create a PHP ordering page. On the first page students will offer a drop down box with three items: iPods, Treos, and Laptops. Students will have the quantity entered next to the selection. A PHP page entitled "process.php" will receive the information and repeat it to the customer. Also there will be a picture of the item selected.
http://www.davidcfreer.com/~David/Order.htm
http://www.davidcfreer.com/~David/Order.htm
Monday, March 26, 2007
First PHP Program
Ask a user to enter their name and password. The welcome screen will be titled Welcome.html. It must include a picture of a flower. The PHP page receiving the username and password must be saved as usernameandpassword.php. If the username or password is wrong, the user will get the message "Who do you think you are??? We are too smart for you." If the username is "AOIT" and the password is "ilovecomputers" (without the quotes) the message will be, "What took you so long?" and a link to google.com.
Friday, March 23, 2007
PHP Programming
Your program will ask a user for a percentage they received on a recent grade. Then you will calculate what their letter grade is and return it to them.
Input: Percentage as an integer 0-100.
Output: Either A, B, C, D, F.
Your processing will consist of an if statement and following else if statements.
Input: Percentage as an integer 0-100.
Output: Either A, B, C, D, F.
Your processing will consist of an if statement and following else if statements.
Thursday, March 22, 2007
Today's assignment
You are to create a PHP page with your name as a variable and your age as the value. Output the PHP variable using echo. Put this on your web host and your URL on your blog of the file.
Wednesday, March 21, 2007
You must have a hosting plan with PHP by tomorrow..
Tomorrow is a grade for having a PHP hosting plan.
Looking ahead
- Of all the things we've done this year, which are the most useful and important up to this point?
- What do you want to learn about computers?
Monday, March 19, 2007
Thursday, March 15, 2007
Last assignment of the third nine weeks...
- A picture of a future job using Paint. See my example below. Yours will look much better.
- A Flash movie of the last movie you saw.
There is a time constraint to this assignment. Work quickly but do your best work!
Wednesday, March 14, 2007
Subscribe to:
Posts (Atom)
