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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started