2. The data
Back to the challenge.
Data about a large number of persons who buy and sell diverse products shall be analyzed. The data structure for this task has a simple design: A person has a given name, surame, age and gender. A buyer might also be a vendor. Sales and purchases are stored in lists. Each element in this list represents a product by it’s article number, the quantity sold and the unit price. The unit price may change per transaction due to various discounts. The following diagram visualizes the class Person.
In the appendix you’ll find a simple program to create sample data.