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:
The cell membrane gives the cell its structure and regulates the materials that enter and leave the cell. Like a drawbridge intended to protect a castle and keep out enemies, the cell membrane only allows certain molecules to enter or exit. Oxygen, which cells need in order to carry out metabolic functions such as cellular respiration, and carbon dioxide, a byproduct of these functions, can easily enter and exit through the membrane. Water can also freely cross the membrane, although it does so at a slower rate. However, highly charged molecules, like ions, cannot directly pass through, nor can large macro molecules like carbohydrates or amino acids. Instead, these molecules must pass through proteins that are embedded in the membrane. In this way, the cell can control the rate of diffusion of these substances.
<u>Summarize</u>: Function of the Cell Membrane. The cell membrane gives the cell its structure and regulates the materials that enter and leave the cell. Like a drawbridge intended to protect a castle and keep out enemies, the cell membrane only allows certain molecules to enter or exit.
<u><em>I hope its helpful!</em></u>
Answer:
wow thanks!
Explanation:
i really needing something to be happy about