The first thing to do is NOT to build that GUI but to figure out what you're actually trying to do.
Without knowing that you can never expect to create a user interface which actually makes sense, let alone the code behind it to work with the data entered and produce the data you want to produce.
Your array is meant to store numbers entered into the user interface for later calculation of their average.
A rather limited implementation, but I guess you haven't come to the point of learning about more appropriate data structures yet so it'll have to do for now.
Just make sure you have some checks on the number of inputs in there so you don't try to insert more than 15 elements into the array
Reputation Points: 1658
Solved Threads: 331
duckman
Offline 7,719 posts
since Nov 2004