Question: Write a complete java program to execute of what is asked in each item below: a. Input 8 different names and store it into an

Write a complete java program to execute of what is asked in each item below:

a. Input 8 different names and store it into an array

b. Display all the contents of the array.

c. Display the 2nd , 4th, 6th , and the 8th elements in the array using for loop.

d. Compute the sum of the 2nd , 4th, 6th , and the 8th elements in the array using for loop

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!