LinAppleSoft has asked you to create a Cookbook app, a handy tool for people to write down their favorite recipes! The app will start with the following question. "Hello, would you like to [A]dd a recipe or [L]ist your current recipes." 1. If the user chooses L, simply list out the recipes you've created so far in the following format: Recipe Name -------------------- Recipe Info Instructions: - Instruction 1 - Instruction 2 - Instruciton 3 ... Sample Output: Apple Pie ---------------------- Golden Apple Pie, the way grandma used to make it. - Peel and slice apples. - Mix 3 Tbsp of sugar and half cup of flour into apples - Grease pie tin with shortening - Apply pie crust to pan - Add apple filling - Cover with pie crust dough - Preheat oven to 350 degrees - Cook for 35 minutes - Let it cool before serving 2. If the user chooses A, take the following input from the user. Enter the recipe name: Enter the recipe information: Add a new recipe instruction, or enter [X] to finish instruction list: Continue looping through and asking the user for more recipe instructions until they give an X to finish. The user should be able to add an indefinite number of instructions. 3. The app should be able to store an indefinite number of recipes. (Don't worry about saving them to a file yet. We'll learn about this very soon.) Hints: Create a Recipe class to hold the recipe information in Recipe objects. Store the Recipe objects in a vector<Recipe> variable to make it simple to list all recipes. Store recipe instructions in a vector<string> variable to make it simple to list instructions. |