I have worked on this type of problem before.
I am not sure what exactly you know, so here are some questions:
1
Do you know how to run some code when [Input Values] is clicked?
Do you know how to make an InputBox popup?
Do you know how to read text from an InputBox?
Do you know how to convert text into a list of numbers?
Do you know how to put those numbers into an array?
Do you know how to update the box Label with the array's values?
2
Do you know how to run some code when [Display Min/Max] is clicked?
Do you know how to calculate the smallest + largest number in an array?
Do you know how to update the min/max Labels with a number?
Announcement
Collapse
No announcement yet.
Need help on a Visual Basic programming problem
Collapse
X
-
Are you trying to get a 2d spaceship game to do your homework for you?
Leave a comment:
-
Need help on a Visual Basic programming problem
I just need to know how to set up this array within the program to allow 10 values to be entered then later be shown into separate labels as a largest and smallest value.
The question reads.
Largest/Smallest Array Values
Create an application that lets the user enter 10 values into an array. The application should display the largest and smallest values stored in the array. Figure 8-45 shows an example of the application's form after all 10 values have been entered, with the largest and smallest values displayed.
The form basically shows a large label box where your values will show up. Then two regular labels next to the boxed label that determines the largest and smallest values. There are four buttons, a clear, exit, Display Min & Max, and Input Values.
I have the actual program layout already made and the initial buttons already declared, being the exit and clear buttons. I just need to know how to setup the array's for the other two buttons.
If you can help it would be much appreciated.
ThanksTags: None
Channels
Collapse

Leave a comment: