Answered step by step
Verified Expert Solution
Link Copied!

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 2 Advanced C# Features (Marks: 100) Learning Units 1 to 3 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 1. Implement the feedback provided by your lecturer on part 1 before continuing with part 2. Marks will be awarded for this (10%).
The application must still perform all the functions from part 1, with the following features added:
1. The user shall be able to enter an unlimited number of recipes.
2. The user shall be able to enter a name for each recipe.
3. The software shall display a list of all the recipes to the user in alphabetical order by name.
4. The user can choose which recipe to display from the list.
5. 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.
6. The software shall calculate and display the total calories of all the ingredients in a recipe.
7. The software shall notify the user when the total calories of a recipe exceed 300.
Non-functional requirements:
8. You are required to use internationally acceptable coding standards. Include comprehensive comments explaining variable names, methods, and the logic of programming code.
9. You are required to use classes.
10. You must use generic collections to store the recipes, ingredients, steps, and no longer arrays. 11. You are required to use a delegate to notify the user when a recipe exceeds 300 calories.
12. 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Graph Databases

Authors: Ian Robinson, Jim Webber, Emil Eifrem

1st Edition

1449356265, 978-1449356262

More Books

Students also viewed these Databases questions