Thanks Rabbit but i still didn't get you well,line 23 says
frequency(respo nse(answer))+=1 now when answer is 0 response(0)=1 then it becomes frequency(1)+=1 now is the 1 in the frequency(1)ref erencing an index?
User Profile
Collapse
-
could anyone help me understand this code whow it functions especially line 23
Code:1 ' Fig. 7.5: StudentPoll.vb 2 ' Using arrays to display poll results. 3 4 Imports System.Windows.Forms 5 6 Module modStudentPoll 7 8 Sub Main() 9 Dim answer, rating As Integer 10 Dim output As String 11 12 ' student response array (typically input at run time) 13 Dim responses As Integer() 14 responses = New Integer() {1, 2, 6, 4, 8, 5, 9, 7, _
No activity results to display
Show More
Leave a comment: