ITEC 120
HW5: Array methods (100 pts)

Academic Integrity

Be reminded that this homework assignment must be your own work.

 

Objectives

You will implement methods operating on arrays and gain an understanding of arrays.

 

Assignment

Develop array methods. (Do NOT use any methods of the array class or other methods to solve these problems. You write the code to solve the problems yourself.)

Download these two files: TestHW5.java and HW5Srv.java.

STEP 1 - Write stub methods for all methods and compile and run HW5Test.java. You'll need to get the method signature correct in order for your files to compile. Do not change the TestHW5.java.

STEP 2 - Implement the methods that have tests (in any order you choose). Re-compile and run TestHW5.java often to see if your methods are working.

Feel free to add additional methods to your service class. Sometimes it's helpful to break a problem up into smaller pieces, especially when you can reuse one of the smaller pieces. This type of method might be referred to as a helper method.

 

Submit Your Assignment

Submit your HW5Srv.java and HW5gradingWorksheet.pdf to the HW5 Assignment dropbox on D2L.