Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C# Programming a) Create the following Win form as shown below. b) For the first group box Calculate Asynchronously, you would be creating a method

C# Programming

a) Create the following Win form as shown below.

image text in transcribed

b) For the first group box Calculate Asynchronously, you would be creating a method > long Factorial (long num) which is being called asynchronously ( defined by the use of async, await and Task objects) in the event handler of Calculate button. You would be writing recursive version of Factorial. Also you need to validate all the input values and handling of all the possible exceptions.

c) For the second group box Check for Even/Odd, you would be creating a two methods (by demonstrating the use of delegates and Lambda expression) - IsEven and IsOdd which takes an integer as input and return the true/false, and calling and using these methods in the event handler of Check for Even or Odd button. Also you need to validate all the input values and handling of all the possible exceptions.

d) For the third group box Display List of Values and Search, implement the following:

i) Generate Values button should generate 10 values (between 10 and 99 and by making use of Random number generator) depending upon the selected radio button choice. Use list box control to display the generated values as shown in the screen shot. ii) Search button should be able to search correctly an input value from the list of values in the listbox. Make use of Message Box to display the result. You need to define a generic search method SearchData which takes a generic list and value to be searched as inputs and returns boolean. You would be calling this method in the Search button event handler. Also you need to validate all the input values and handling of all the possible exceptions. iii) Display button should display the range of values between the valid index values from the list of values in the listbox. You need to define a generic display method PrintData which takes a generic list and low index value and high index value as inputs and returns a list of values between low and high index. You would be calling this method in the Display button event handler. Also you need to validate all the input values and handling of all the possible exceptions.

Asynchronous Programming (1) Calculate Asynchronously Get Factorial of: (3) Display List of Values and Search Integers Doubles Char Generate Values 21 34 Input Value for Search: 56 Calculate Search (2) Check for Even/Odd Input Low Index: Display Input Number Input High Index: Output of values between Low and High: Check for Even or Odd Asynchronous Programming (1) Calculate Asynchronously Get Factorial of: (3) Display List of Values and Search Integers Doubles Char Generate Values 21 34 Input Value for Search: 56 Calculate Search (2) Check for Even/Odd Input Low Index: Display Input Number Input High Index: Output of values between Low and High: Check for Even or Odd

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_2

Step: 3

blur-text-image_3

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

Database And Expert Systems Applications 24th International Conference Dexa 2013 Prague Czech Republic August 2013 Proceedings Part 1 Lncs 8055

Authors: Hendrik Decker ,Lenka Lhotska ,Sebastian Link ,Josef Basl ,A Min Tjoa

2013 Edition

3642402844, 978-3642402845

More Books

Students also viewed these Databases questions

Question

EXPLAIN how employment-related iss ues are governed i n Canad a.

Answered: 1 week ago