Question: write static method calcRunningTotal which has a formal parameters called input of type array of int(this variable can refer to an array such as for
write static method calcRunningTotal which has a formal parameters called input of type array of int(this variable can refer to an array such as for eaxmple:{2,1,4,0,3})
The mathod should make a new array called result of the same size,and use a loop to set the elements of result to contain a running total of the elements of inputs(from above example result will hold {2,3,7,7,10}the method should return refference to result. (In JAVA)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
