/* * Ex 7.1: Which of the following are valid declarations? Which instantiate * an array object? Explain your answers. * * int primes = {2 , 3 , 4 , 5 , 7 , 11}; * float elapsedTimes[] = {11.47, 12.04, 11.72, 13.88}; * int[] scores = int[30]; * int[] primes = new {2, 3, 5, 7, 11}; * int[] scores = new int[30]; * char grades[] = {'a', 'b', 'c', 'd', 'f'}; * char[] grades = new char[]; * * * Ex 7.3 Describe what problem occurs in the following code. What modifications * should be made to it to eliminate the problem? * * int[] numbers = {3, 2, 3, 6, 9, 10, 12, 32, 3, 12 ,6}; * for (int count = 1; count <= numbers.length; count ++) * System.out.println(numbers[count]); * * Ex 7.4 Write an array declaraction and any necessary supporting classes * to support the following statements: * NOTE: This problem has been deferred from hw09 to a future homework. * * a. students' names for a class of 25 students. * b. students' test grades for a class of 40 students. * c. credit-card transactions that contain a transaction number, * d. students' names for a class and homework grades for each student. * e. For each employee: the employee number, hire date, and the amount * of the last five raises. * * PP.7.4 Design and implement an application that ... reads in an * arbitrary number of integers in the range 1..100 inclusive, * and produces a chart similar to the one below that indicates how * many values fell in the range 1..10, 11..20, and so on. * Print one asterisk for every five values in each category. * 1 - 10 | 11 - 20 | 21 - 30 | *** 31 - 40 | 41 - 50 | * 51 - 60 | ** 61 - 70 | 71 - 80 | * 81 - 90 | 91 - 100 | * * */