so im creating the game hammurabi for my college course and im trying to set up arrays with chartsi basiclly want the chart to show the population and the amount of bushels that i currently have for each year, but these figures are not known yet until each year has passed which is done by the user clicking a button im having issues with setting it up so that the array collects the data from each yer and saves it so i can use it in the chart
this i my code for it so far any help would be appreciated
https://pastebin.com/SRfNzP6R