Monday, October 30, 2006

In class quiz:

Ask the user to enter the number of pennies, the number of nickels, the number of dimes, and the number of quarters. Return to the user the exact amount (in dollars).

Save the html file as "change.html" on your desktop.

Hint: After you prompt the user you need to turn the string into an integer:

parseInt( )

Friday, October 27, 2006

To see where the servers are located...

Check out this link:

Get ready...

Because we are going to do this:

Second Homework Assignment

Second Homework:
Students are to create a program that asks users for the distance they are traveling and store it in a variable. Then you are to ask the user for the miles per gallon of their car. Store this in a variable also. Lastly ask the user how much gas they have and store this in a variable. With this information calculate whether or not they can make the journey with the amount of gas they have. If not suggest they fill up.

Print this and your homework from yesterday and turn it in on Monday October 29th 2006. Leave your name in a comment. Do not email this assignment to me, you need to print it out!

Thursday, October 26, 2006

Your homework

This must be printed or written out by Monday October 30th 2006.

Student homework: Design a program that simply takes in a user's name and puts their name in a joke. For instance the program would prompt the user to enter their name and they'd put in Bill. Then the program would write to the screen a joke with the name Bill as part of it. The next user who enters in Sam would have the name Sam as part of the joke.

Do not email me this program. You have to supply the joke as well!

Tuesday, October 24, 2006

How to turn strings into integers and natural architects

You can turn strings into integers with this function:

Ahh, I knew the problem was the variables were being saved as strings but I was flustered because of the NetOps. I'd consider the day spent with sketchup a complete success, however!

Seriously a few of you are naturals...

Thursday, October 19, 2006

Javascript program to square numbers

Write a program that takes a user entered number and returns the number squared.

Tuesday, October 17, 2006

Another decent Javascript tutorial

Great article on things all computer programming languages must do
Testing to see if Javascript code can be posted on the web site!

Listing 2

var visitorName = window.prompt( "What is your name?", "" );
var proceed = window.confirm( "Are you ready to go further
with JavaScript " + visitorName + "?");
if ( proceed == true )
window.alert ("That's great " + visitorName);

Solar Energy

Create a MPG program:

  • Three variables: One for MPG, one for distance, and one for gas used.
  • Initialize the program first for the distance to Orlando and the amount of gas you believe would be used. Pretend the first vehicle is a Hummer.
  • Do calculation.
  • Display MPG to screen.
Once this is complete you need to prompt the user for the miles driven and the gallons of gas used. You will return the miles per gallon.

Friday, October 06, 2006

Javascript Code

In your AOIT page you need at least three javascript codes.
Sign up at

Make a web page:
1. Define HTML
2. Define PHP
3. Define MySQL

Tuesday, October 03, 2006