Question
How to write a console program that requires user input using C# ,using generic collections to store the recipes, ingredients, steps, and graphical user interface(GUI)
How to write a console program that requires user input using C# ,using generic collections to store the recipes, ingredients, steps, and graphical user interface(GUI)
,also could you use a delegate to notify the user when a recipe exceeds 300 calories.
and can you create a unit test to test the total calory calculation .
The user shall be able to enter the details for a single recipe:
The number of ingredients.
For each ingredient: the name, quantity, and unit of measurement. For example, one
tablespoon of sugar.
The number of steps.
For each step: a description of what the user should do.
The software shall display the full recipe, including the ingredients and steps, in a neat format to the user.
The user shall be able to request that the recipe is scaled by a factor of 0.5 (half), 2 (double) or 3 (triple). All the ingredient quantities shall be changed accordingly when the recipe is displayed. For example, our one tablespoon of sugar will become two tablespoons of sugar if the factor is 2.
The user can request that the quantities be reset to the original values.
The user shall be able to clear all the data to enter a new recipe.
The software shall not persist the user data between runs. The data shall only be stored in
memory while the software is running.
The user shall be able to enter an unlimited number of recipes.
The user shall be able to enter a name for each recipe.
The software shall display a list of all the recipes to the user in alphabetical order by name.
The user can choose which recipe to display from the list.
For each ingredient, the user shall additionally be able to enter:
The number of calories, and
The food group that the ingredient belongs to.
The software shall calculate and display the total calories of all the ingredients in a recipe.
The software shall notify the user when the total calories of a recipe exceed 300.
The user shall be able to filter the list of recipes by:
entering the name of an ingredient that must be in the recipe,
choosing a food group that must be in the recipe, or
selecting a maximum number of calories.
The user can choose multiple recipes to include in a menu. The software then displays a pie chart showing the percentage that each food group makes up of the total menu.
can you use internationally acceptable coding standards. Include
comprehensive comments explaining variable names, methods, and the logic of
programming code.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
QUESTION How to write a console program that requires user input using C using generic collections to store the recipes ingredients steps and graphical user interfaceGUI also could you use a delegate ...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