BLG252E Object Oriented Programming 3rd Homework solution

$24.99

Original Work ?
Category: You will Instantly receive a download link for .ZIP solution file upon Payment

Description

5/5 - (1 vote)

For this homework assignment, you will be writing Shop, Cookie, Candy, and Icecream classes in support of a Dessert Shop which sells candy by the kg, cookies by the dozen and ice cream by litre. You will use these classes for the checkout system and the classes are described below. You should take into account some rules and if the given rules are not met, error messages must be thrown.
 Candy class has a weight and a price per kg which are used to determine its cost.
 Cookie class has a number and a price per dozen which are used to determine its cost.
 Icecream class has a litre and a price per litre which are used to determine its cost.
 Discount percentage for any item must be in range of [0, 30] and an exception should be thrown for an invalid value.
 Any type of dessert shop (e.g. cookie, candy, icecream, shop