CCSF CNIT 133 – JavaScript
Homework 2 – Basic Operations
Part 1: | Create a webpage that contains a script that displays, as text, the numbers 1 to 4 on the same line, with each pair of adjacent numbers separated by one space. |
Part 2: | Create 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. |
Part 3: | Create 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. |
Part 4: | Create a webpage that contains a script that calculates the squares and cubes of the numbers 1 to 6 and outputs text that displays the resulting values in a table format. |
Extra Credit: | Create a webpage containing a script that will input an amount in U.S. dollars and display in a table its equivalent in five foreign currencies, rounded to 2 decimal places. |