CCSF Spring 2010 / CNIT 133 Homework 2 - Basic Operations


Link to... Description
Part 1 This is a webpage that contains a script that displays, as XHTML text, the numbers 1 to 4 on the same line, with each pair of adjacent numbers separated by one space.
Part 2 This is a webpage that contains a script that inputs three integers via form text boxes and displays the sum, average, product, and the smallest and largest of the integers. Your results should be displayed using alerts or a form textarea.
Part 3 This is a webpage that contains a script that inputs 5 numbers and determines and displays the count of the negative numbers, the number of positive numbers, and the number of zeros. For input, use form text boxes. Your results should be displayed using a form textarea.
Part 4 This is a webpage that contains a script that calculates the squares and cubes of the numbers 1 to 6 and outputs XHTML text that displays (using document.write or document.writeln statements)


Valid XHTML 1.0 Strict Valid CSS!