Difference between revisions of "CSC103 2011 Take-Home Final Exam"

From dftwiki3
Jump to: navigation, search
Line 58: Line 58:
 
=Problem #3=
 
=Problem #3=
  
* Write a javascript program that compute 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 odd numbers between 0 and 100, included.  This second number will be stored in a variable called sumOdd.
+
* 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.

Revision as of 17:14, 2 March 2011

--D. Thiebaut 16:38, 2 March 2011 (EST)


Page under construction!
UnderConstruction.jpg


...