The calculator should be able to compute taxes for any "taxable" object.
The model solution consists of a TaxCalculator and a Taxable type. Note that "Taxable" is a Java interface meaning it is an "idea". Thus, object users will have to replace it with "real" objects for use.
The interface Taxable only needs one method: "BigDecimal beforeTaxPrice()"
BigDecimal is used for accuracy
The class TaxCalculator should have an ivar named element of type "Taxable"
The class TaxCalculator should have a method "calculate" -- when it is called it akes the element and computes the "salesTax" and "afterTaxPrice" and sets the values into ivars
The class TaxCalculator should have one constructor that recieves two params -- the first is of type Taxable, and the second is a string representing the tax rate -- a hint is that the tax rate should be converted to a BigDecimal