2014-10-17 HW14

posted Oct 17, 2014, 8:12 PM by Samuel Konstantinovich   [ updated Oct 17, 2014, 8:12 PM ]
Homework14: (due Monday printed on paper with test cases+heading)
1. 
Write the function (sumDigits n) will return the sum of the digits of integer n.

2. 
Write the function (countEven L) -> returns the number of even numbers inside of a list L, L must contain only integers, and can have 0 or more elements. There are no sublists.

3.
Write the function (maxValue L) -> returns the largest value of a list L which contains real numbers and has at least one element. 
You may not use the max function. There are no sublists.
Comments