Home Segments Index Top Previous Next

394: Practice

Write sumOfSquares, a method that computes the sum of the squares of the numbers in an array. Use the method shown in Segment 383 as a guide. Then repeat this assignment, using the method shown in Segment 390 as a guide.