Create a class Candy with the following data: weight of one candy bag, price of one candy bag.
There are three types of candy in the store. Find the weight and price of heaviest candy bag. What is
the price of 1 candy bag with minimum weight?
 Extend the class Candy with variable to store sales quantity data. Create a class Gourmand with
variables to store the following data: amount of money in litas (Lt) and cents. Which candies (at least
one bag) can a gourmand buy if he need any of the candy type.
 Extend the class Gourmand with Set()method which would allow to change gourmands amount of
money. Which of candies can a gourmand buy if his amount of money increases twice?

3 Years
Discussion Span
Last Post by bernardo.mclobo

Note the terms of service for Daniweb. We don't do your homework for you. Make an effort, post your code, and then we may decide to help. Otherwise, don't ask us to help you cheat!

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.