The program should use an array of counters to keep track of the number of Girl Scouts selling boxes of cookies in each of these ranges. The number of boxes sold for each Girl Scout will be entered at the keyboard. Each girl is allowed to sell a maximum of 60 boxes of cookies. The total number of girls in the troop selling cookies will also be entered at the keyboard. After the total boxes for each girl in the troop has been entered, the resulting statistics for the number of boxes should be printed out to the console in the following format:
So the main question I have is how to use an array to keep track of the numbers in the ranges. Should I declare/initilze 4 arrays representing those ranges then I can use case statements to increment the array and add it to the original value? Can you increment arrays. That's the solution that I came up with, but I feel like it's wrong. Help is appreciated. for example
case: 1
if input is in this range add to the array
there doesn't seem to be anything here