Question
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.
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
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