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

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

a. Input 7 numbers and store it into an array and compute the sum of the 7 inputted numbers at the same time.

b. Display all the contents of the array.

c. Display the 1st , 3rd, 5th , and the 7th elements in the array using for loop.

d. Compute the sum of the 1st , 3rd, 5th , and the 7th 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!