Difference between revisions of "CSC103 2011 Take-Home Final Exam"
Line 58: | Line 58: | ||
=Problem #3= | =Problem #3= | ||
− | * Write a javascript program that | + | * Write a javascript program that computes the sum of all the even numbers between 0 and 100, included, and stores the result in a variable called sumEven. The same program will also compute the sum of all the multiples of 5 between 0 and 100, included. This second number will be stored in a variable called sum5. |
* Use the programs from the [[CSC103_Lab_4_Solution_2011| Lab 4 solution]] programs for inspiration in terms of organization and documentation. | * Use the programs from the [[CSC103_Lab_4_Solution_2011| Lab 4 solution]] programs for inspiration in terms of organization and documentation. |