Question: Description For this exercise, you will be writing a java application in support of a Dessert Shoppe which sells candy by the pound, cookies by




Description For this exercise, you will be writing a java application in support of a "Dessert Shoppe" which sells candy by the pound, cookies by the dozen, ice cream, and sundaes (ice cream with a topping). Your program will be used for the checkout system. To do this, you will implement an inheritance hierarchy of classes derived from a DessertItem abstract superclass The Candv Cookie, and IceCream classes will be derived from the DessertItem class The Sundae class will be derived from the IceCream class You will also write a Checkout class which maintains a list (Vector) of DessertItem's The DessertItem Class The DessertItem class is an abstract superclass from which specific types of DessertItems can be derived. It contains only one data member, a name. It also defines a few methods. All of the DessertItem class methods except the getcost ) method are defined in a generic way in the file, DessertItem.java, provided for you along with the other homework specific files in the directory The getcost) method is an abstract method that is not defined in the DessertItem class because the method of determining the costs varies based on the type of item. Tax amounts should be rounded to the nearest cent. For example, the calculating the tax on a food item with a cost of 199 cents with a tax rate of 2.0% should be 4 cents DO NOT CHANGE THE DessertItem.java file! Your code must work with this class as it is provided The DessertShoppe Class
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
