Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I specifically need help on the PROCESS AND RESULTS part and plz show the use of DELIGATES and EVENT HANDLING with some EXEPTION HANDLING as

image text in transcribed
image text in transcribed
image text in transcribed
I specifically need help on the PROCESS AND RESULTS part and plz show the use of DELIGATES and EVENT HANDLING with some EXEPTION HANDLING as specified on C#
Specifications: You are required to recreate the following GUI: Process Add Subtract Multiply Assignment 2 Data Numbers to generate Minimum (-10 000) Maximum (10 000) 1bNumbers Process Generate Load Results breouts Clear Save Data section This section consists of three textboxes: Numbers to generate: How many random numbers to generate Minimum: The minimum allowed value of any generated number Maximum: The maximum allowed value of any generated number When the user presses enter in any of the three text boxes, the click event handler (method) for the Generate button must be called. All three textboxes must share the same event handler for monitoring whether the Enter button was clicked (i.e. 1 event handler, not 3 - so no unnecessary code duplication). The minimum and maximum values entered may not exceed or be less than the indicated amounts. When the user clicks the Generate button: Clear the listbox (lbNumbers) Generate the required number of random numbers, using the minimum and maximum bounds Add every generated number to the listbox When the user clicks the Clear button, all the entries in the listbox must be cleared. Process and Results This section is used to process the entries in IbNumbers, using the process indicated by the RadioButtons. The process for this is as follows: 1. The first entry of IbNumbers is added to IbResults and becomes the current value. 2. The next value from IbNumbers is read and added, subtracted or multiplied with the current value. 3. The result of this calculation is added to Results and becomes the current value. 4. The process then starts over from step 2 - this continues until all items in IbNumbers have been processed. Eg Addition: Subtraction Multiplication IbNumbers IbResults IbResults IbResults 1 3 -1 2 2 6 -4 6 3 10 -8 24 4 Your system should include three methods for performing the specific calculations, namely Add, Subtract and Multiply. All three the methods should have a return type of void and receive no parameters. Ensure that the system is not able to "bomb out" if something unexpected happens. The process phase must make use of a delegate. When the user clicks on the Process button the system may only make a call to a predetermined delegate, i.e. you may not directly call the methods Add Subtract or Multiply. This event handler may contain no other call besides the method call to the delegate method. All three radiobuttons have to share the same event handler. This event handler must be used to determine which method should currently be assigned as the delegate

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

Recommended Textbook for

Database Design Application Development And Administration

Authors: Mannino Michael

5th Edition

0983332401, 978-0983332404

More Books

Students also viewed these Databases questions

Question

How do dealers differ from brokers?

Answered: 1 week ago