realestate
package.
You should download the data files into the downloads
directory/folder that you created for this course.
realestate
package and all of the components in the
realestate.io
package.
In addition, you must develop a complete unit test suite for these
components that covers all statements and all branches (as measured by
EclEmma). Your tests
must be in a package named testing
and each test class
must include the word "Test" in its name.
.zip
file named pa3.zip
that contains:
testing
.Do not submit the data files, they will be provided by the autograder in the appropriate location (as discussed below).
You may submit your code up to 10 times with no penalty. After the 10th submission, your grade will be reduced by 5 points for each submission.
As always, points will be deducted manually (i.e., outside of Gradescope) for code that is unclear, inelegant, and/or poorly documented.
Scanner
to use a particular
delimiter or delimiters you must invoke
its useDelimiter()
method. For example, to instruct
it to use just commas as delimiters you must pass
it ","
, to instruct it to use just newline characters
as delimiters you must pass it "\n"
, and to instruct
it to use both you must pass it "[,\n]"
(which is a
regular expression that matches both).
BufferedReader
you will read an entire record (including the newline character)
using the readLine()
method.
downloads
directory/folder that you created for
this course. You should then open a file explorer or finder,
select all of the files, and drag them into your IDE. If you are
using Eclipse, you must drag them into the project (not
the src
directory/folder or anything underneath
it).
Then, in your code that needs to use these files (e.g., your tests),
you should use only the file name (i.e., do not include a path).
For example, you might construct a BufferedReader
named
in
as follows:
BufferedReader in = new BufferedReader(new FileReader("cs349.houses"));
It is possible to put the data files elsewhere, but then, when you submit your solution, your code will not be able to find them. In other words, for your code to work both on your computer and on the submission system, the data files must be dragged into the Eclipse project.
fromString()
method. As another example,
derived classes must not duplicate code in the class that they
specialize. As a final example, methods that
read String
representations of objects must not
duplicate code in the factory methods.
Copyright 2024