Answer:
The External Data Bus is used to transport binary data and Address bus is used to transport memory addresses.
Explanation:
- External Data Bus is a combination of data bus and external bus. Data bus is used to carry data and instructions between two or more components in the system e.g. CPU and all other computer components.
- External bus is also called expansion bus. It is used to connect external components to the computer. Its a communication medium between CPU and other components. These components can be peripheral device like USB or flash memory.
- So External Data Bus is used to transport data between CPU and external components. It is a primary communication pathway for data in a computer. The external data components are connected to this bus and the instruction or data on this bus is available to all external components. But the data communication is slower as compared to that of internal bus.
- Address Bus carries physical location or address of data and transports memory addresses. Processor uses address bus when it wants to read data from memory or write data to the memory by sending a read/write signal by placing the read/write address of the specific memory location on the address bus.
Answer:
The code to this question can be given as:
Code:
int i,j,count_previous=0,count_next=0; //define variable
for (j=0; j<n; j++) //loop for array
{
if (x[0]==x[j]) //check condition
{
count_previous++; //increment value by 1.
}
}
for (i=0; i<n; i++) //loop
{
for (j=0; j<n; j++)
{
if (x[i]==x[j]) //check condition
{
count_next++; //increment value by 1.
}
}
if (count_previous>count_next) //check condition
{
mode=x[i-1];
}
else
{
mode=x[i];
count_previous=count_next; //change value.
count_next= 0 ; //assign value.
}
}
Explanation:
In the question it is define that x is array of the string elements that is already define in the question so the code for perform operation in the array is given above. In the code firstly we define the variable that is i, j, count_previous, count_next. The variable i,j is used in the loop and variable count_previous and count_next we assign value 0 that is used for check the values of array. Then we define the for loop in this loop we use conditional statement in the if block we check that array of zero element is equal to array of j value then the count_previous is increase by 1. Then we use nested loop It is also known as loop in a loop. In this first loop is used for array and the second loop is used for check array element.In this we use the condition that if array x of i value is equal to array x of j then count_next will increment by 1.Then we use another condition that is if count_previous is greater then count_next then mode of x is decrement by 1. else mode equal to array and count_previous holds the value of count_next and count_next is equal to 0.
A technology habit that I practice today that I realize will not help me to be successful is playing games on my phone. It’s important to stop doing this because instead of playing a game I could be doing more helpful things, like reading a book.
Answer:
for(String s:words)
if(s.endsWith("ing"))
System.out.println(s);
Explanation:
Create an enhanced for loop that iterates through the words array
Check if an element in words ends with "ing" using endsWith() method (Since it is said that strings are lowercase letters, we do not need to check it)
If you find one that ends with "ing", print the element
The answer to this question is "to monitor all the elements of the marketing mix for a Oregon winery". This is the main task of the tuna marketer's task in the emailing or website which is very known s tunwonderfish.com and this compaign was exclusively related to the elements of mixing in a large Oregon winery but not including the production.