We are about to switch to a new forum software. Until then we have removed the registration on this forum.
int[] freqCount(int[] roll){
int[] freqs= new int [NUM_SIDES];
for(int i=0; i<roll.length; i++){
}
return freqs;
//Count the frequencies of each number (1..NUM_SIDES) in
//the given dice roll, returning the result as a array of
//NUM_SIDES integers. Note that freqs[0..5] are the frequencies
//of 1..6. The dice show 1-6 but subscripts must go 0-5.
}//freqCount
int maxOfAKind(int[] freqs){
}
//Find and return the largest integer in an array of integers.
not sure what to put under maxOfAKind
Answers
Sorry, here are the constants
Obviously homework.
Write down, in sentences, how you'd find the highest number in a list of numbers.
Or just wait until gotoloop does it for you. That way you learn nothing but hey...