AP Computer Science
1. Complete and turn in Gridworld questions for Set 1 pg. 6
2. Explain how to pass an array to a method. (add this question to your gridworld questions.
3. Create a program named random_array. The array be a 50 element array that holds random numbers between 1-100. Determine the average number generated. Include your name, program explanation and date as comments.
4. Read pages 530-537.
a. Explain declaring an array.
b. Explain initializing an array.
c. How can the length method be used with arrays.
5. Create an array that holds 100 elements of randomly generated numbers between 1 and 10. Determine the number of elements that have the value of 5.
6. Create an array that contains 10 user input integers. Find the largest and smallest value and its index. In addition determine and display the average of the array elements. Display the index and the value.
PLACE ALL WORK IN YOUR NOTEBOOK. TURN IN YOUR NOTEBOOK AT THE END OF CLASS