CSC 275 Assignment 3 Flower Pack
After dinner with Alexander and Elizabeth we notice that Alexander is mixing some herbs as a medication for Elizabeth which eases her pain and helps her sleep. Once the medicine is administered we begin small talk with Alexander. During the conversation he tells us the story about how his mother and father were hopelessly in love and were lucky enough to die side by side protecting the things they loved most, their children.
In the middle of the story we become distracted by Elizabeth trying to request something, but we can’t make out what she wants because her medicine has kicked in. After a few moments we determine she is requesting a flower, but we can’t understand the entire name, just the start. Instantly we remember that we know how to search through our flower pack while only using partial names. We instantly turn around and start working on yet another improvement to the flower pack.
• Create a flower object that has specific traits (name, color, presence of thorns and smell)
• These flower objects must be able to stay in his pack (Use an ArrayList)
• Be able to add and remove flowers
• Implement a partial search (Searching for ‘r’ should return all flowers with an ‘r’ in their name, and the same goes for any partial search). This is commonly known as a filter.
As a new addition a rubric has been added to blackboard for the assignment.
Using the same code as assignment 2 you can make your changes. I have included some base code for your convenience (This is 2 classes, Assignment3 and Flower).