an array to add 8 best done subject grades from the 10 subject done
hello guys am working on a window application in vb.net Am trying to code an array that can add only 8 best subjects grades from the 10 subjects done by a student. the ten subject grades are dispayed as labels and also the TOTAL of best eight subject grades is dispayed as a label. Any one to help me. am new in pragramming
You will need to store the ten label values, may as well be in an array, sort it and either only access the first 8 or remove the last 2. Can you post up what code you've done then someone can edit it with advice on how to achieve what you need.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
' subject grades
Label1.Text = 7
Label2.Text = 1
Label3.Text = 3
Label4.Text = 8
Label5.Text = 4
Label6.Text = 9
Label7.Text = 2
Label8.Text = 5
Label9.Text = 2
Label10.Text = 6
Dim gradeList As New ArrayList()
'sort grades in an arraylist
' Please guys help me and modify this code to sort and SUM UP ONLY best eight done subject grades.
' I want label11.text to display the answer
Hey, so I wanna ask how I need to create a method who will remove word if in that word is 2 same chars. Example: "Potato" in this word there is a 2 "o" chars so this word will need to be removed. "Forum" in this word there is no ...
Hi I'm having a problem implementing a mini shopping cart drop down in the header to show the user all the products they have in their shopping cart. It seems the only solution for this is Ajax, and I've looked all over and can't find anything that I could possibly ...