Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Part 2 Advanced C# Features ( Marks: 1 0 0 ) Learning Units 1 to 3 At the end of this specific part, students should
Part Advanced C# Features Marks: Learning Units to At the end of this specific part, students should be able to:
Use a generic collection to solve a programming problem.
Use delegates to solve a programming problem.
You will continue working on the application created in part Implement the feedback provided by your lecturer on part before continuing with part Marks will be awarded for this
The application must still perform all the functions from part with the following features added:
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: a The number of calories, and b 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
Nonfunctional requirements:
You are required to use internationally acceptable coding standards. Include comprehensive comments explaining variable names, methods, and the logic of programming code.
You are required to use classes.
You must use generic collections to store the recipes, ingredients, steps, and no longer arrays. You are required to use a delegate to notify the user when a recipe exceeds calories.
You are required to create a unit test to test the total calory calculation.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
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