I have this code that Ive spent too much time on and I cant figure. Its supposed to get the averages of the numbers and then output the answer.I input the name and then when I type in the numbers it only takes 1 and after that i cannot continue. Im a beginner in small basic and am having a hard time understanding this.I know that visual basic is more advanced so im trying to understand the simple stuff before I get into visual basic. If I can get some advice it would be greatly appreciated.
total=0
count=0
TextWindow.WriteLine("What is the students name? :")
name=TextWindow.Read()
While name<>""
TextWindow.Write(" Enter the grades :")
grades=textwindow.ReadNumber()
While grades<>""
total= total+grades
count=count+1
EndWhile
TextWindow.Write(name+ "average is" +total/grades)
TextWindow.WriteLine("Enter the name of another student or press enter to exit :")
name=textwindow.Read()