| | |
Help with array
Please support our VB.NET advertiser: Intel Parallel Studio Home
Thread Solved |
•
•
Join Date: Mar 2009
Posts: 56
Reputation:
Solved Threads: 0
Hey guys need help with this problem that is suppose to read an unspecified number of scores and determines how many scores are above or equal to the average and how many scores are below the average. Enter a negative number to signify the end of the input. Assume that the maximum number of scores is 100. Anyway here is what I have so far. I know I'll need an array for the add button and a calculate that will need to access the array. My teacher is not very helpful. Here is what I have so far. I am completely lost.
VB.NET Syntax (Toggle Plain Text)
Private Sub btnAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAdd.Click Dim getAverage() As Integer = txtAddScore.Text{getAverage1, getAverage2} Do While getAverage(99) > 0 Loop End Sub Private Sub btnCalc_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalc.Click End Sub End Class
0
#2 Nov 5th, 2009
Read Generics. The following code snippet will help you to understand the basics of collections (generics).
VB.NET Syntax (Toggle Plain Text)
Dim p As New List(Of Double) p.Add(10) p.Add(20) MsgBox(p.Average())
![]() |
Similar Threads
- How can is see what button is pressed in a button array (VB.NET)
- Printing a histogram from a frequency array (C)
- troubleshoot char array; (C++)
- Dynamic array => dropdown issues... (PHP)
- passing a pointer/reference to array into a class (C#)
Other Threads in the VB.NET Forum
- Previous Thread: Create an event handler for a third party library that I use
- Next Thread: Changing time in datetimepicker
| Thread Tools | Search this Thread |
Tag cloud for VB.NET
.net 30minutes 2005 2008 access account application arithmetic array arrays basic binary bing button buttons c# center check checkbox code combobox component connectionstring convert crystalreport data database databasesearch datagrid datagridview design dissertation dissertations dissertationthesis dropdownlist excel file-dialog folder ftp generatetags google gridview hardcopy image images inline insert intel internet listview mobile monitor ms net networking output passingparameters peertopeervideostreaming picturebox picturebox1 plugin port print printing problem problemwithinstallation project reports" save searchbox searchvb.net select serial server soap sorting table tcp text textbox timer toolbox trim update updown user vb vb.net vb.netcode vb.netformclosing()eventpictureboxmessagebox vb2008 vbnet view visual visualbasic visualbasic.net visualstudio visualstudio2008 web wpf






