First Summer 2008


Homework Four: More loops and sequences.
Due date
Thursday May 22, 11:59pm

Late policy
E-mail the solutions as a text file to Adrian by the due date.

Late submissions will be accepted for full credit if:

Work policy
Working in groups is encouraged but please turn in your own version of the assignment.

Also, please make sure you

with the Computer Science Department's Statement on Academic Integrity before turning in your assignment.

Task
  1. Write a method that calculates the sum of all elements in a list of numbers.
  2. Write a method that counts the number of even numbers in a list of numbers.
  3. Write a method that takes two arguments:
    a) a list of numbers (integers) call it data and
    b) an integer a
    and returns the number of times a shows up in the list
Grading
Feedback by e-mail should reach you in 12 hours from the time of your submission.

If feedback doesn't come contact Adrian by e-mail or phone and report it.

Grades will be posted within 24 hours of your submission on your individual blog once the blog is activated.