Você está na página 1de 2

Assignment # 01

Deadline: 28th Dec, 2018

For this homework assignment, you will be writing software for a Dessert Shoppe which sells candy by the pound,
cookies by the dozen, ice cream, and sundaes (ice cream with a topping). Your software will be used for the checkout
system.

To do this, you will implement an inheritance hierarchy of classes derived from a Dessert Item super class.

The Candy, Cookie, and Ice-cream classes will be derived from the Dessert Item class.

The Sundae class will be derived from the Ice-cream class.

You will also write a Checkout class which maintains array list of Dessert Item’s.

All these items will have their fixed price.

Now what the customer will do, he will enter dessert items into the cart, add/remove food item from the cart, get the
number of items, gets the sub total cost of the items, and in last you have to display the total bill of customer. Customer
can also search through the items on the basis of price name and category. Write appropriate classes and methods using
OOP concepts studied in the class.

Submisssion Rules:

Draw the UML class diagram in MS Word.

Submit .java files of your code.

Hint:

Following is the GUI app which will help you in understanding the flow of the program and data members of the classes.
Convert this GUI into console

Note: For any queries, contact within 2 days after the assignment is uploaded
Good Luck.

Você também pode gostar