Next: Recursion
Up: Assignment 11: Arrays
Previous: Random integers
- 1.
- Using a for loop, write a method called inRange
that counts the number of elements in an integer array that fall
in a given range (from low to high, including both
ends).
- 2.
- As an exercise, you may want to rewrite the methods on
Quiz 15 using for loops. This step is not required, but it
will be excellent practice for the final exam.
Allen B. Downey
1999-04-21