Due Date: Wed, Mar 26, 2003
Question 1: Reading. Read Chapter 10, up to and including 10.8. Do this now, before attempting Question 2!
Question 2: Array of Random Numbers. Write a Java program which reads in a positive integer n, and uses the technique described in Chapter 10 (use the same method signatures), creates an array of n doubles and prints out all the values in the array. Next, your program should repeatedly read in an integer k, stopping when k<0 or k>=n, and otherwise printing out the double in the array with index k. Hint: This is a small addition to the code already in the book.
See Course Home Page.