Answer:
- import java.util.Scanner;
-
- public class Main {
- public static void main(String[] args) {
- int num[] = new int[51];
- Scanner input = new Scanner(System.in);
- System.out.print("Number of input: ");
- int limit = input.nextInt();
- for(int i=0; i < limit; i++){
- System.out.print("Input a number (1-50): ");
- int k = input.nextInt();
- num[k]++;
- }
- for(int j=1; j < 51; j++){
- if(num[j] > 0){
- System.out.println("Number of occurrence of " + j + ": " + num[j]);
- }
- }
- }
- }
Explanation:
The solution is written in Java.
Firstly, create an integer array with size 51. The array will have 51 items with initial value 0 each (Line 5).
Create a Scanner object and get user entry the number of input (Line 6-7).
Use the input number as the limit to control the number of the for loop iteration to repeatedly get integer input from user (Line 9-13). Whenever user input an integer, use that integer, k, as the index to address the corresponding items in the array and increment it by one (LINE 11-12).
At last, create another for loop to iterate through each item in the array and check if there is any item with value above zero (this means with occurrence at least one). If so, print the item value as number of occurrence (Line 14-17).
One answer could be a GUI = Graphical User Interface (e.g. Windows Explorer).
Encoding in the information processing theory is the process of inputting of information into the memory system.
<h3>What is encoding?</h3>
Encoding is an act or a system method that is used in the inputting of information into the computer memory system.
It entails the storage in the retention of encoded information. After encoding is the Retrieval method that is the act of getting the information out of memory.
Learn more about encoding from
brainly.com/question/3926211
As the question states Alisha is displaying the quality of overconfidence. This can effect not only herself in her work but also others. She can be demotivated and may even lose confidence completely. This behavior can be fixed by approaching towards her. you can call her very assuming, boldfaced or impertinent
HOPE THIS HELPS. PLEASE THANK AND MARK AS BRAINLIEST : )