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
Get step-by-step solutions from verified subject matter experts
