Question: Visual Studio c# - Arrays Create a new GUI, called MyArray. This program will haveonly 1 Form, that the user will use to enter up
Visual Studio c# - Arrays
Create a new GUI, called MyArray. This program will haveonly 1 Form, that the user will use to enter up to 10 integervalues and store these integer values in an array. Your Formshould 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 numberin the Textbox and then click on the “Add value” button. Thefirst value added will go intothe array at index 0. Thesecond value added will be placed at index 1….and so on.
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 usingConsole.WriteLine() to display the values in the output window.
Should your array be declared asGlobal Data?
What happens if the User tries toenter 11 values?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
