Testing and submitting your programs.
Write a program that uses a loop to display a staircase shape: a sequence of one-row tables with a fixed background color, one right under the other, so that the width of the next row is 20 px longer than the width of the previous one.
Th eprogram takes a single input
number_steps which is
the number of steps in the "staircase".
Pick any color you want for the background of the table
Write a program that creates a row of table cells with alternating colors (for instance, the first cell is blue, the second one is yellow, then blue again, etc.). The number of cells is taken as an input.
Write a program that uses php function
rand() to simulate
a roll of die. Write a loop to find 5 random rolls, print them out,
add them all together by keeping a running total, and display the sum.
To submit your programs, make sure that your current version is uploaded to rynite and send me an e-mail that lists all the file names and their locations.
This page is a part of CSci 1101 course web site.
The views and opinions expressed in this page are strictly those of the page author. The contents of this page have not been reviewed or approved by the University of Minnesota.