home—info—lects—labs—exams—hws
D2L—tutor/PIs—zoom (snow day)
Object120 + its docs—java.lang docs—java.util docs
array practice
hw04
Due
2019-Oct-18 (Fri)
at start of class.
Objectives
You will implement methods operating on arrays and gain
proficiency in looping over arrays.
Details include:
-
functions that accept arrays;
-
functions that return new arrays;
-
making multiple passes through an array;
-
copying and making selective updates to arrays;
-
and a brief introduction to mutating an input array.
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.)
- STEP 0:
Download these files:
-
STEP 1: Write stub methods for all methods, and compile
and run TestArrayPractice.java.
You'll need to get the method signature correct in order for your files to compile.
Do not change TestArrayPracticejava.
-
STEP 2: One by one,
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.
-
One or two of the problems should use an appropriate helper function.
You must include unit tests for the helper functions you write (though
just a few tests might well suffice).
Submit Your Assignment
Submit your files ArrayPractice.java
and TestArrayPractice.java
(with the unit-tests for any helper-functions you wrote)
to the hw04 dropbox on D2L.
You don't need to submit Object120.java.
Academic Integrity
Be reminded that this homework assignment must be your own work.
You may not work on any homework assignment with another student.
You may not copy material from another source,
(with the slight exceptions as described in the
syllabus).
If you receive help from a tutor, you must include the name
of the tutor in the header of your submitted code.
home—info—lects—labs—exams—hws
D2L—tutor/PIs—zoom (snow day)
Object120 + its docs—java.lang docs—java.util docs
 This page licensed CC-BY 4.0 Ian Barland Page last generated | Please mail any suggestions (incl. typos, broken links) to ibarland radford.edu |
 |