Answer:
The method is as follows:
public static int lastIndexOf(int [] numbers, int num){
int lastIndex = numbers[0];
for(int i =0; i<numbers.length;i+=num){
lastIndex = numbers[i];
}
return lastIndex;
}
Explanation:
This defines the method
public static int lastIndexOf(int [] numbers, int num){
This initializes the lastIndex to the first element of the array
int lastIndex = numbers[0];
This iterates through every "num" element of the array
for(int i =0; i<numbers.length;i+=num){
This gets the current index... until the last
lastIndex = numbers[i]; }
This returns the last
return lastIndex; }
Answer:
which parts are you talking about
Answer:
Microprocessor
Explanation:
A microprocessor is a programmable chip that incorporates in itself the functions of a computer's central processing unit. It contains millions of small components such as transistors and resistors. In fact, the microprocessor is sometimes called the CPU itself as it contains an Arithmetic Logic Unit(ALU), a control unit and register array.
They work at a very high speed due to the components that they contain and are available at relatively low cost. They are portable, reliable and compared to vacuum tubes, they generate less heat.
<em>Hope this helps!</em>