Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is based on creating Window form using Asynchronous Programming. Create the following Win form as shown below. Asynchronous Programming (1) Calculate Asynchronously Get Factorial

This is based on creating Window form using Asynchronous Programming.

Create the following Win form as shown below.

Asynchronous Programming

(1) Calculate Asynchronously Get Factorial of:

(3) Display List of Values and Search Integers Double

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.

Show transcribed image text 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 with AI-Powered 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