11A

A person qualifies for CalFresh program (money for food) if he/she makes less than $1962 a month. You are given a Person class. A Person has a name and a monthly income. Modify the Person class to implement the Qualifiable interface and determine if a person is eligible for CalFresh. For the final, modify Runner. Remove the code to print true or false and print the name of each Person in the array that qualifies for CalFresh. This is the first time you have submitted a tester. If you have trouble understanding what to do, ask in Piazza.

Note: You will also need to put the Student class into the project.

For the draft, modify the Person class to implement the Qualifiable interface and determine if a person is eligible for CalFresh. Do not modify the Runner.

11A draft:
11A final:

11B

Modify the Product class we wrote together to implement the Comparable interface. Products are ordered alphabetically by name. If two products have the same name, the Products are ordered by price from smallest to largest.. If this Product should come before the other Product, compareTo returns -1. If this Product should come after the other Product return -1. Otherwise returns 0.

For the draft, add the implements Comparable clause to the Product class header and implement compareTo as a stub

Note: You will get a compiler warning about "unsafe or unchecked operations" when you compile ProductTester for the draft. You can safely ignore it for now.

11B draft:
11B final:

11C

Write a class Book. A Book has a title and genre (the kind of book it is.) Implement the Comparable interface. Books are ordered by genre in alphabetical order. If two Books have the same genre, they are ordered alphabetically be title.

Provide Javadoc

When you implement a method from an interface, you can add @Override above the method and Javadoc will use the Javadoc provided in the interface implementation

For the draft, write the Book class. A Book constructor takes title and genre in that order. It has getter methods for the instance variables but no setters. (Book class is imputable)

Note: You will get a compiler warning about "unsafe or unchecked operations" when you compile BookTester for the draft. You can safely ignore it for now.

11C draft:
11C final: