Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed
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

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

Students also viewed these Databases questions

Question

5. What are the causes of brand avoidance and anti- consumption?

Answered: 1 week ago