Stepping Stone Lab Six: RecipeBox Driver Application
Stepping Stone Lab Six Guidelines RecipeBox Driver Application
Overview: Now that you have some experience building basic, single-class applications, here is an opportunity to delve into making a full-fledged application with more than one class. This stepping stone is the point where we pull all the elements of the course into a single Recipe Manager application.
The completed code (.java file) from Stepping Stone Lab Five is included in this module to use as a reference for comparison of your work in Module Six as well as moving forward.
The SteppingStone6_RecipeBox code provided is built around the variable and class names used throughout the stepping stone labs. As you are developing the code in this lab, you should consider how you can transition it to your final project. Eventually, the user input for collecting the ingredients into an ArrayList of strings will be converted to an ArrayList of Ingredient objects. Think about the variable names you are using and where in the code you are collecting the ingredient input.
|
SteppingStone6_RecipeBox |
|
- listOfRecipes: ArrayList |
|
+ getListOfRecipes(): ArrayList + setListOfRecipes(ArrayList): void + SteppingStone6_RecipeBox(): void + SteppingStone6_RecipeBox(ArrayList): void + printAllRecipeDetails(String): void + printAllRecipeNames(): void + addNewRecipe(): void |
Prompt: In Stepping Stone Lab Five, you created a Recipe Class. Now, in Stepping Stone Lab Six, you will focus your skills on developing your own driver class including custom methods to access elements of the Ingredient and Recipe classes.
Specifically, you will need to create the following:
· The instance variables for the class (listOfRecipes)
· Accessors and mutators for the instance variable
· Constructors
· Three custom methods: printAllRecipeDetails(), printAllRecipeNames, and addNewRecipe
Guidelines for Submission: This assignment should be submitted as a Java file.
Extending This Lab for Your Final Project
For your final project submission, you should add a menu item and a method to access the custom method you developed for the Recipe class based on the Stepping Stone Lab Five.