// CSC211-806 // Hints for Project 6.1 (page 315). // Omar Hamadache In the main method: (a)- create declare an array to hold up to 51 integer values from the user: (b)- those values will be considered to keep track of the occurrences. (c)- So every element of this array will count the occurrenecs of the its index. int [] occurrences = new int [51]; (d)- prompt the user to enter integers in the range 0-50 and ending with a number outside the range."); (e)- read the firts integer (f)- read all the remaining integers using a while loop while loop. The condition is based on the range limits. (g)-In the body of the loop: 1- increment the appropriate counter. Note that, doing it this way, you do not need any if statemet. In fact the number corresponds the index of the occurrence you want to increment. 2- read the next value (i)display all integers that were entered one or more times. 1- use a for-loop 2- scan from 0 to 50 inclusive 3- do an if statement to check to print only the integers with: occurrences >= 1 4- use println to display the integer (the index in this case) followed by the number of occurrences. Good Luck