Question: To get input from the user, we need some variables to hold the data. Please declare 4 variables as follows, you can choose the variable


To get input from the user, we need some variables to hold the data. Please declare 4 variables as follows, you can choose the variable names you like arraySize: int currentElement: doublethe value of the current element the size of the array sumOfElements: double the sum of all elements in the array scan: Scanner used to parse the user input
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
