Write a program called CountOccurrences that asks a user to enter ten integers b
ID: 645488 • Letter: W
Question
Write a program called CountOccurrences that asks a user to enter ten integers between 1 and 100. Your program will store the integers into an array and then count the occurrences of each number in the array.
Design the main() method of your program such that it allows the user to re-run the program with different inputs (i.e., use a loop structure).
Here is a sample output: