v1 of their Transcriptz application got all of its input from command-line arguments. v2 must read the grade information from a file.
.trn
Files
History
class
Cohort
class
InputUtilities
class
.trn
Files (in a .zip
that you should unzip after downloading)
testing
and each test class must include
the word "Test" in its name.
Note that it will be difficult to test the InputUtilities
class directly. Instead, you will need to test it by ensuring that the
objects it constructs (i.e., the History
and Cohort
objects) are correct. Since
each module can't be tested in isolation, this is a form of
integration testing.
History
class.History
class.History
class.Cohort
class.Cohort
class.Cohort
class.InputUtilities
class that has a stubbed-out
readCohort()
method.readGradeHistory()
method in the
InputUtilities
class.readGradeHistory()
method.readGradeHistory()
method.
readCohort()
method in the
InputUtilities
class.readCohort()
method.readCohort()
method.
TranscriptzH4
class. When running the main
class it is a good idea to include the full path and file
name in the command-line/run arguments, otherwise, depending
on where you put the files, you will get
a FileNotFoundException
. (Remember to put the
whole thing in quotes if it contains spaces.).zip
file that contains:
JMUCourseTable
class but not
including the main classes).testing
).There is no limit on the number of submissions and no penalty for excessive submissions.
Note that you will not be given hints if your code does not conform to the style guide and/or does not pass your tests. You must now identify and correct these issues in your development environment.
As always, points may be deducted manually for code that is unclear, inelegant, and/or poorly documented.
.zip
file containing the data files
into the downloads
directory/folder that you created for
this course. You should then unzip them in that same directory.
After you have unzipped the data files you must open a file explorer
or finder, select all of the files, and drag them into
Eclipse. Specifically, 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("bart.trn"));
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.
Copyright 2024