v1 of their Gradient application worked only with a single course structure (i.e., for a course that has 6 programming assignments (with the lowest dropped) that account for 40% of the course grade, 5 homework assignments that account for 10% of the course grade, one midterm exam that accounts for 20% of the course grade, and a final exam that accounts for 30% of the course grade.) v2 of Gradient reads the course structure and assignment grades from a file.
.grd
File
.grd
File
.grd
Files
Gradient
class for this Sprint
Category
class
Course
class
CourseReader
class
.grd
Files (in a .zip
that you should unzip after downloading)
Gradient
class. Your tests must be in a package
named testing
and each test class must include
the word "Test" in its name.
Note that it will be difficult to test the CourseReader
class directly. Instead, you will need to test it by ensuring that the
objects it constructs (i.e., the Course
object and the
Category
objects it contains) are correct (i.e., that each
one has the correct key
and value
). Since
each module can't be tested in isolation, this is a form of
integration testing.
grading.io
.Category
class.Category
class.Course
class.Course
class.CourseReader
class that has a stubbed-out
readCategory()
method.readCourse()
method in the
CourseReader
class.readCourse()
method.
readCategory()
method in the
CourseReader
class.readCategory()
method.
.zip
file named sub4.zip
that contains:
Gradient
class).testing
) Note: Your tests must
only make use of the data files that were provided to you,
which you must not submit.There is no limit on the number of submissions and no penalty for excessive submissions.
Note that some criteria are described as being "Success Required". This means that Gradescope will not assess subsequent criteria unless these criteria are satisfied (and you will receive a grade of 0 for those criteria). So, for example, if your code does not conform to the style guide then it will not be assessed using any subsequent criteria and you will receive a grade of 0.
As always, points will be deducted 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("complete_01.grd"));
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.
All of the data files will be available on Gradescope for you to use in your tests (assuming you follow the instructions above).
Copyright 2025