CSci 1101 Lab 4. Due Friday Feb. 17th at 10pm

Reminder about sftp

This is just a reminder of basic sftp commands.

Changing the loop behavior

  1. Copy the program loops.php from the lecture examples.
  2. Change all the loops so that they print every other number, for instance 1 3 5 7 9 11 13. Upload the program to rynite and test it.

Alternating colors

Write a program with a loop that generates a table with one row of square cells with no text (set the width and height of the cells as an inline style). Set the background of the cells to alternate between two colors. The number of cells is a variable in your program. Hint: to determine the cell color, use on if/else statement inside the loop to check if the loop counter is odd or even.

To submit

Just upload the two files to rynite AND send me an e-mail with the file names and 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.