Answer:
import java.util.Scanner;
public class FindMatchValue {
public static void main (String [] args) {
final int NUM_VALS = 4;
int[] userValues = new int[NUM_VALS];
int i = 0;
int matchValue = 0;
int numMatches = -99; // Assign numMatches with 0 before your for loop
userValues[0] = 2;
userValues[1] = 2;
userValues[2] = 1;
userValues[3] = 2;
matchValue = 2;
numMatches=0;
for(i=0;i<NUM_VALS;i++)
{
if(userValues[i]==matchValue)//cheking if the array element is equal to match value.
{
numMatches++;
}
}
System.out.println(numMatches);//printing the matchvalue.
}
}
Output:-
3
Explanation:
First I have set the value numMatches to 0 before the loop.Then I have user the for loop to iterate over the array.In the for loop I am checking that the array element is equal to the matchValue or not if it is equal then increasing the numMatches by 1.Then at last print the value of numMatches.
Answer:
D. 4x as much
Explanation:
The answer is pretty simple. The question is asking about 10m/s and 20m/s right? Take a look at the energy at each point on the graph. At 10m/s the kinetic energy is 100 on the graph. At 20m/s the kinetic energy is 400. You'll notice that 100 x 4 is 400 - That's the answer.
You can also prove this mathematically. The formula for kinetic energy is

The question says: constant mass so we can ignore that for now.
(1/2) * 10^2 is (1/2) * 100 = 50
for the 20m/s ball it would be
(1/2) * 20^2 = 400 * 1/2 = 200
Once again, you see that it is 4x
Firewall
Dont forget to thanks and give brianliest.