> Visual Basics - Two highest test scores?

Visual Basics - Two highest test scores?

Posted at: 2014-12-18 
It would be hard to understand what you are doing without actually going through your code.

But idea of storing test score in a array feels correct.

When Button1 is clicked.

Store test score in array .

When Button 2 is Clicked.

Just go through the whole array and select 2 maximum value .Let me know if you are having confusion abt how to pick two top scores.

Sounds like all you need are two variables, something like high, and highest. Initialize these to the lowest possible value ( 0?).

Each time a score is entered compare it against the values of high and highest, and it it is higher than either one update the values with your new high and highest.

Then when the second button is clicked display high and highest.

So im taking a visual basics class and we have a projects that requires us to write a program that reads a test score from a text box each time a button is clicked and then displays the two highest scores whenever a second button is clicked.

I am not understanding how we can store the test scores.

I tried making an array, but that didnt seem to work for me. Please help if you can.