Question: ***PSEUDOCODE: Design (pseudocode) for a program (name it Occurrences) that counts the occurrences of integers in an array. The program main method defines a single-dimensional
***PSEUDOCODE: Design (pseudocode) for a program (name it Occurrences) that counts the occurrences of integers in an array. The program main method defines a single-dimensional array of size 10 elements and prompts the user to enter 10 integers to initialize the array. The main method then calls method Count()to printout the count of each value in the array. Method Count()takes an integer array, counts the occurrences of each value in the array, and prints out the results as shown below. Document your code and properly label the input prompts and the outputs as shown below.
Sample run 1:
Entered integers: 7 7 7 7 7 7 7 7 7 7
7 occurred 10 times
Sample run 2:
Entered integers: 5 2 3 2 1 5 17 22 3 5
5 occurred 3 times
2 occurred 2 times
3 occurred 2 times
1 occurred 1 time
17 occurred 1 time
22 occurred 1 time
Sample run 3:
Entered integers: 25 35 25 11 35 35 35 45 35 10
25 occurred 2 times
35 occurred 5 times
11 occurred 1 time
45 occurred 1 time
10 occurred 1 time
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
