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?

Recommended Answers

All 3 Replies

And your question is?

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!

#include<effort>
#include<code>

int main()
{
    cout<<"Make an effort and post your code";
}

Greetings

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.