Line89, we fill the arr[i] array with 31 random numbers.
Use for loop to go through all elements in arr[i] array and print every element out.
Set the value of all elements in arr[i] array to be int value.
I input a value. The for loop check the value of all elements inside the array, whenever the value is same as the inputted value, count will plus 1.
I first set the minimum to be the first number in the array. Then I compare all the other elements in the array with the value of minimum. If one element’s value is less, then the minimum value, the value of that element will be set to the minimum.
Real-life Application & Conclusion
This algorithm can be developed to process more complicated data and have more functions like rank the data, calculate the sum, mean, or standard deviation. By adding GUI to the algorithm, the algorithm becomes more user-friendly and accessible leading to broader implications.