Assignment Task: HealthyEat Bakery
HealthyEat bakery is a family owned business. It is renowned for the healthy bread baked since generations in the family. In HealthyEat bakery, there are three types of bread sold: Rye Bread, Multiseeds bread, Brown Bread. It is not only known for the healthy bread but also for the economical prices of the bread.
The prices of the bread
- Rye Bread (RB) - $1.3,
- Multiseeds bread (MB) - $1.2 and
- Brown bread (BB) - $1.
Each bread has predefined price, amount sold and name (the abbreviations).
The person holds 2 data fields:
- the type of the bread bought (the abbreviations)
- the money they have
You are required to develop program as below by applying OOP principles and constructs:
1) That calculates the total earning of each type of bread;
2) That calculates your total earnings;
3) That shows a person, who has a definite amount of money, how much of a particular type of bread may buy.
4) Draw the class diagram showing the relationship among the classes.