| Homework 4 - Decision Logic Part 2 | |
|---|---|
| Part 1 | Create a webpage that contains a script, using the for statement, that calculates the product and sum of every third integer from 5 to 20 and then outputs XHTML text that displays the results. |
| Part 2 | Create a webpage that contains a script that will calculate compound interest on a principal of $1000 for interest rates of 5, 6, 7, 8, 9, and 10%, for years 1 through 10. |
| Part 3 | A mail-order house sells five different products whose retail prices are as follows: product 1, $2.98, product 2, $4.50, product 3, $9.98, product 4, $4.49, product 5, $6.87. Create a webpage that contains a script that reads a series of pairs of numbers as follows:
a) Product number b) Quantity sold for that product - (for the week) |
| Part 4 | Create a webpage that contains a script that uses a prompt or a form text box for one of three different list formats. Use the following to determine which format is desired. Your script should use a switch statement to help determine this.
1 - unordered list 2 - ordered number list 3 - ordered letter list |
| Extra Credit | Create a webpage that contains a script that uses repetition and switch statements to print the song "The Twelve Days of Christmas". One switch statement should be used to print the day (i.e., "First," "Second," etc.). A separate switch statement should be used to print the remainder of each verse. |