Finding the most repeated element, and the greatest and smallest values in an array

Hi, this is Mazen. In this post, we're going to solve a programming example, which is three searching operations on an array. First, we introduce two simple approaches to find the most repeated element, that is - the element which has the most count. Next, we elaborate on the logic of finding either of the greatest and smallest elements. The question says: Write a program that searches an array for the most repeated number, and the smallest and greatest values It's a good practice to separate the requirements into subproblems and then putting all of them together to make up the main program. Therefore, we're going to start solving the first part of the question which is finding the most repeated number. To do that, there are two simple approaches. I'm going to show you both of them and it's for you which one to choose. Before doing the three operations, we assume that you previously declared an integer array, named it " array " and got ten inputs for it. ...