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:
A. Slides can be easily added, deleted, copied and reorganized.
Answer:
CPU need 50% much faster
disk need 100% much faster
Explanation:
given data
workload spend time CPU = 60%
workload spend time I/O = 40%
achieve overall system speedup = 25%
to find out
How much faster does CPU need and How much faster does the disk need
solution
we apply here Amdahl’s law for the overall speed of a computer that is express as
S =
.............................1
here f is fraction of work i.e 0.6 and S is overall speed i.e 100% + 25% = 125 % and k is speed up of component
so put all value in equation 1 we get
S =
1.25 =
solve we get
k = 1.5
so we can say CPU need 50% much faster
and
when f = 0.4 and S = 125 %
put the value in equation 1
S =
1.25 =
solve we get
k = 2
so here disk need 100% much faster
Answer:
Attend traings
Explanation:
Because if you do you can learn diffent waay to do it and choose your way that you like.
ANd do not obseve poeple who has it easy
Answer:
C) until the message has been communicated