Question: JAVA PROGRAMING BEGIN Please interlace your answers with a copy of the questions, and make your text black. Easy peasy. 1. Look at the following
JAVA PROGRAMING BEGIN
Please interlace your answers with a copy of the questions, and make your text black. Easy peasy.
1. Look at the following array definition. int[] values = new int[9]; A) How many elements does the array have? B) What is the subscript of the first element in the array? C) What is the subscript of the last element in the array? D) If an int uses four bytes of memory, how much memory does the array use?
2. The arrays array1 and array2 each hold 25 integer elements. Write code that copies the values in array1 to array2.
3. In a program you need to store the identification numbers of 11 employees (as ints) and their weekly gross pay (as doubles). A) Define two arrays that may be used in parallel to store the 11 employee identification numbers and 11 weekly gross pay amounts. B) Write a loop that uses these arrays to print each employees identification number and weekly gross pay.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
