Question: 10:00 hw array Declare an array alpha of 15 elements of type int, and do the following Output the value of the tenth element of

 10:00 hw array Declare an array alpha of 15 elements of

10:00 hw array Declare an array alpha of 15 elements of type int, and do the following Output the value of the tenth element of the array alpha. Set the value of the fifth element of the array alpha to 35. Set the value of the ninth element of the array alpha to the sum of the sixth and thirteen elements of the array alpha. Set the value of the fourth element of the array alpha to three times the value of the eighth element minus 57. Output the array alpha so that five elements per line are printed. HW (Array). 1. Write a java program that declares an array of 10 elements of type integer. Initialize the array so that every element of the array is equals to the square of the index variable. 2. Write a java program that declares an array of type character that contain your full name. Initialize the array so that every element of the array has a letter of your full name. 3. Write a Java program that declares an array alpha of 50 elements of type double. Initialize the array so that the first 25 element are the square of the index variable, and the last 25 elements are the cube of the index variable. Output the array so that each 10 elements are printed on each line. 4. Write a java program to read N data elements into two arrays, X and Y, of size 10 elements. Store the product of the corresponding elements of X and Y in a third array Z, also of size 10 elements. Print a three-column table displaying the arrays X, Y, and Z. Then compute the square root of the sum of the items in Z

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!