Answered step by step
Verified Expert Solution
Question
1 Approved Answer
need answers to both of the questions Exercise 01: Create a C# app in which you are required to create the following methods using built-in
need answers to both of the questions
Exercise 01: Create a C# app in which you are required to create the following methods using built-in delegates predicate and lambdas. - string Minimum( string1, string2, string3) which returns the smallest of three string values. To test this method, you need to use built-in Func delegate predicate void AvgGrade(value1, value2, value3) which displays the average of three grades. To test this method, you need to use built-in Action> delegate predicate Exercise 02: Define a student's grade array having at least 10 double values between 10 and 100. Define a delegate - GradesPredicate which takes one input of type double and returns a bool. Define a method - GradesFilter which displays only those grades values which are greater than or equal to 50. This method should take an array of type doubles and second argument is a variable of Grades Predicate. This method should not return any type. We should call this method like this: GradesFilter(gradesArray, lambda-Expression); Lambda-Expression should filter values which are greater than or equal to 50 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