Question
Asked by:
$5.00 Visual Basic array program
- From Computer-Science: General-CS , Computer-Science: Object-Oriented-Programming
- Closed, but you can still post tutorials
- Due on Feb. 07, 2009
- Asked on Feb 05, 2009 at 7:27:10PM
Q:Okay, I really don't understand arrays in Visual Basic and now I have to write a program using them. I'm completely lost. Can someone please help me out with creating this? Thanks so much!! Here is the assignment:
Write a program to declare an array with the statement Dim state(49) As String and maintain a list of certain states. The list of states should always be in alphabetical order and occupy consecutive elements of the array. The buttons in the program should give the user the following options:
(a) Take the state specified by the user in a text box and insert it into its proper position in the array. If the state is already in the array, so report.
(b) Take the state specified by the user in a text box and delete it from the array. If the state is not in the array, so report.
(c) Display the states in the array.
To which psha85 said: There are no problem numbers. They are not from the book. It's simply an assignment which the teacher gave us.



