Question: Fully develop the classes for the Linked Implementation of the ADT Bag (i.e., https://github.com/beratgumus/The-Bag-ADT). Test your classes well (call all methods) before you proceed. Use
Fully develop the classes for the Linked Implementation of the ADT Bag (i.e., https://github.com/beratgumus/The-Bag-ADT). Test your classes well (call all methods) before you proceed.
Use the following name for the files: Bag Interface, Linked Bag, and Test Bag.
Automated grocery bag filler
1. Write a program that uses heuristics (that a bagger at a grocery store might use) to fill a shopping bag (an instance of your LinkedBag class) from a whole bunch of grocery items. 2. How you store the initial bunch of grocery items is up to you 3. Grocery items have properties such as weight, breakability, squishability, etc. 4. As the bag is being filled, items are selected so that roughly (thats why its heuristic and not an algorithm): 4a. The heaviest items (bag of potatoes) are near the bottom (added earlier) 4b. The items that are the most squishable (bread) and breakable (eggs) are near the top (added later).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
