Variables, arrays, precedence, pointers

Arrays are by far the most fun to work with and I really need see if its possible to enable an array to count apples, pears, peaches, from a group of three each.

If any of the fruit groups were chosen how might an algorithm be put together to count how many were chosen from each group. But lets take into consideration that these fruit groups are not supposed to be randomly generated, instead they belong as an array with certain amount of chosen occurrences. To show how many fruits were chosen from each group example, 1 from group 1, 2 from group 2, 3 from group 3
the out put is the important part because it shows the group and the occurrence of that group. the algorithm should be able to display the group with an occurrence as well
Last edited on
Sounds really interesting... Keep us updated.
Topic archived. No new replies allowed.