**THIS IS AN IN CLASS EXCERCISE AND WILL NOT DIRECTLY AFFECT YOUR GRADE**
* Your solutions will be evaluated by the TAs to judge your knowledge of the material so please write neatly and keep your solution organized.
Problem 1: Create a class RationalNumber. The class will represent rational numbers by an int numerator and an int denominator. The class will allow the operations addition, subtraction, division, and multiplication. The class will also implement the interface Comparable.
Problem 2: Modify your solution to in class exercise 1 problem 3 so that the class Car will implement the interface Comparable.
Problem 3: Modify your solution to in class exercise 1 problem 3 so that the class Truck will implement the interface Comparable.
Problem 4: Consider the interface Drawable. It defines objects that can be drawn and contains the method: public void draw(). This method will draw to the command prompt the Drawable object in question. Declare the interface Drawable.
Problem 5: Add to the solutions given previously for Rectangle and Triangle the implementation of the interface Drawable.
Problem 6: Analyze and design a solution to the class Square. Suppose, Square is a subclass to Rectangle. What needs to be done in order for Square's area to be calculated? What needs to be done in order for Square to be Drawable?