Monday, March 6, 2017

March 6, 2017

Objective: Use a while() loop to search through an array of numbers

Activities
  • Collect all your past study guides: Tests 1, 2, 3, 5-1, & 5-2
    • Extra copies on back table if needed
    • Redo and/or study these for final exam
  • Example - how to find the minimum value on an array of numbers 
  • Array project - Due Tuesday (Mastery).  
    • Write four the four functions below and code that tests all four functions and prints out the results.  Show me in class for a grade.
    • minimum(numArray) - returns the minimum value in numArray
    • maximum(numArray) - returns the maximum value in numArray
    • odds(numArray) - returns the number of odd numbers in the numArray (integers)
    • average(numArray) - returns the maximum value in numArray

No comments:

Post a Comment