Question: Create a class GroupExcercise In Java that would ask the user to perform the following: - Using an array of 15 integers, assign the value
- Then, each succeeding element should have twice the value of its predecessor.
- Compute for the sum and average then display the results.
Results must be:
1
2
4
8
16
32
64
128
256
512
1024
2048
4096
8192
16384
Sum of all the inputs: 32767
Average of the inputs: 2184
Step by Step Solution
3.46 Rating (162 Votes )
There are 3 Steps involved in it
CODE import javautilArrays public class GroupExercise public static void mainStr... View full answer
Get step-by-step solutions from verified subject matter experts
