IT 130: The Internet and the Web
Spring 2008
Assignment 8
Loops and Running Totals
Due Friday June 6
Overview
You will be creating Web pages that require more advanced conditions
including pages that have conditional repetition.
Requirements
Create a Web page for each of the following exercises:
- Study the code in Figure
13.3. Modify the page so that it does the following:
- Add a counter, which keeps track of how many times the dice
are rolled. Have your page report the number of times the dice
were rolled inside of the text area.
- Instead of stopping when doubles are rolled, have the dice
rolling stop as soon as a 7 is rolled.
- Create a page that implements a simple game of chance. The
actual design and rules are up to you, but it should at least have
the following properties:
- Display at least three random outcomes on the page. For example,
show the
results of at least three dice rolls. Of course, you may want to use
your own images to create something that works like a slot
machine.
- Keeps a score (or monetary value) for the player.
- For each round of play, depending on the outcome, there should be
at least 3 different levels of reward or penalty that is added (or
subtracted) to the players score (or monetary value).
- Use styles to make an interesting, aesthetically pleasing page.
Here is simple example for you to consider.
Of course, in addition to the requirements above, you may want to add
additional elements, images, rules, etc.
Deliverables
Using the COL
submission, tell me the URL of your navigation page.