I'm doing something quite complicated and as a beginner it's baffling me. I need to create a bar chart based on values read in from a file. For example, say the file contains grades of university students between 0 and 100%. I need to store the results in an array, as well as their frequency (as in, how many times a specific grade has been scored). My idea was a two dimensional array- grades and their frequency. But can anyone help me out with some syntax? How to assign contents from a file to a two dimensional array, and how would i declare the array without knowing it's initial values?
ANy help much appreciated.