A good answer might be:Of course you remembered to initialize sum to zero, as below: | ||
Complete Sum MethodHere is a complete program with the new method. All the previous methods of the class can be included where the comment indicates.
Notice how the main() method uses the method call as if it were a number:
| ||
QUESTION 13:Would the following statement be correct as part of main()? Click Here after you have answered the questionint value = operate.sumElements( ar1 ) / 4 + 32; |