Answer:
The following are the program in the Java Programming Language.
//set a package
import java.util.Scanner;
//define class
public class Main
{
//define a main method
public static void main(String[] args)
{
//declare the Scanner class object
Scanner s = new Scanner(System.in);
//get the size of the array from the user
int size=s.nextInt();
//declare an integer array with given size
int a[]=new int[size];
//declare a string array with given size
String word[]=new String[size];
//set the for loop
for(int i=0;i<size;i++)
//get string input from the user
word[i]=s.next();
//iterates with the array, increase the count
for(int i=0;i<size;i++)
{
for(int j=0;j<size;j++)
{
//check that elements of words
if(word[i].equals(word[j]))
//increament in the array by 1
a[i]++;
}
}
System.out.print("\n");
//set for loop to print the following result
for(int i=0;i<size;i++)
System.out.println(word[i]+" "+a[i]);
}
}
Explanation:
<u>The following are the description of the program</u>.
- Firstly, set the required predefined package and define class 'main then, define main method inside the class and inside the method.
- Declare the object of the scanner class and get the size of the array through the object in the variable 'size'.
- Then, declare two array which are integer type 'a' with the given input size and string type 'word' with the given input size.
- Set the for loop that get string type array elements from the user and again set two for loop that increase the size of the integer data type array by 1 with the loop iteration.
- Finally, set the for loop that print the following result.
Answer:
There are many ways to write an algorithm. Some are very informal, some are quite formal and mathematical in nature, and some are quite graphical. The instructions for connecting a DVD player to a television are an algorithm. A mathematical formula such as πR2 is a special case of an algorithm. The form is not particularly important as long as it provides a good way to describe and check the logic of the plan.
The development of an algorithm, a plan is a key step in solving a problem. Once we have an algorithm, we can translate it into a computer program in some programming language. Our algorithm development process consists of five major steps.
Explanation:
Step 1: Obtain a description of the problem.
Step 2: Analyze the problem.
Step 3: Develop a high-level algorithm.
Step 4: Refine the algorithm by adding more detail.
Step 5: Review the algorithm.
Grace Hopper is credited with the first documented computer bug. She also devoped the first compiler, while working at Remington in 1952.
Answer:
a. Contrast ratio
Explanation:
According to my research on LCD technology, I can say that based on the information provided within the question the term being described by the question is called Contrast Ratio. This is used in all TV's and monitors, since it controls the blacks and white color gradient of the images on the TV's and monitors.
I hope this answered your question. If you have any more questions feel free to ask away at Brainly.