CSci 1101 Problem set 3. Due Thursday, February 26 at 11:59pm

Question 1 (5 points)

In the voting program in the previous problem set print out the name of the winner. If it's a tie, print out both names and a message saying that they got equal number of votes.
Important: Copy your program from the previous problem set into a new file, do not change the original program.

Question 3 (10 points)

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.

Question 4 (10 points)

Write a program that adds all elements of an array of numbers and prints out the sum. Define an array in the beginning of the program. If the array changes, the sum should change accordingly.

Testing and submitting your code

To submit your programs, make sure that your current version is uploaded to csci1101sp09 and send me an e-mail that lists all the file names and their locations and the names of program inputs.


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.