Question: Visual Studio C# Start with your solution from the Array program below, Use a try-catch block to prevent an IndexOutOfBoundsException from occurring. Once you have
Visual Studio C#
Start with your solution from the Array program below, Use a try-catch block to prevent an IndexOutOfBoundsException from occurring.
Once you have added your try-catch clauses, run the Program and have the user enter 11 numbers for the array. What happens?
In this Program you will be working with Arrays.Create a new GUI, called MyArray.
This program will have only 1 Form, that the user will use to enter up to 10 integer values and store these integer values in an array.
Your Form should have one TextBox to enter the integers, and 3 Buttons;an Exit Button, an Add Value Button, and a Display Values Button.
To Add a number to the array, the user should type in a number in the Textbox and then click on the Add value button.
To Display the data in the Array, the user should click on the Display Button.
When the user clicks the Display Values Button, you should display the values stored in the array using Console.WriteLine() to display the values in the output window.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
