





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The pseudocode for a recipe management application that allows users to perform various operations such as adding, deleting, and listing recipes and ingredients. The application is designed to manage a recipe box, where users can store and manipulate their recipes and ingredients. The pseudocode outlines the key functionalities of the application, including adding a new recipe, adding an ingredient, listing all recipes and ingredients, deleting a recipe or ingredient, and exiting the program. A detailed step-by-step breakdown of the logic and flow of the application, making it a valuable resource for developers or students interested in object-oriented application development.
Typology: Thesis
1 / 9
This page cannot be seen from the preview
Don't miss anything!






2-2 Stepping Stone Lab One: Pseudocode for Your Program Southern New Hampshire University IT-5 1 1-Q3525 Object Oriented App Develop 24 TW
//Ingredient Class Define String nameOfIngredient Define float numberCups Define int numberCaloriesPerCup Define double totalCalories //Recipe Class Define String recipeName Define int servings Define ArrayList recipeIngredients Define double totalRecipeCalories //RecipeBox Class Define ArrayList listOfRecipes
Go to printAllRecipeNames; Else user selects “Exit” Go to function exitProgram; End function RecipeBox(); Add a Recipe Begin function addNewRecipe(); function getRecipeName function getServings function getRecipeIngredients Display list of all ingredients for user to select Function calculate TotalRecipeCalories For each item of recipeIngredients, TotalRecipeCalories = sum of TotalCalories Save recipe to listOfRecipes End function addNewRecipe(); Add an Ingredient
List All Ingredients Begin function listOfIngredients(); Print listOfIngredients If user selects and Ingredient Print recipe details to console Else if user does not select an Ingredient Return to RecipeBox End function listOfIngredients(); Delete a Recipe Begin function deleteRecipe(); Display list of all recipes If user selects a recipe Print “Are you sure you wan to delete this recipe?” If user selects “yes” Delete the recipe Return to list of recipes Else if user selects "no”
Return to list of recipes Else if user does not select a recipe Return to RecipeBox End function deleteRecipe(); Delete and Igredient Begin function deleteIngredient(); Display list of all ingredients If user selects an ingredient Print “Are you sure you want to delete this ingredient? This ingredient will be removed from any recipes it is a part of.” If user selects “yes” Delete the ingredient Return to list of ingredients Else if user selects “no” Return to list of ingredients Else if user does not select an ingredient Return to RecipeBox End function deleteIngredient();