Answer:
Almost done
Explanation:
I am just finishing up my work
Explanation:
Sum of forces in the x direction:
∑Fx = ma
Rx − 250 N = 0
Rx = 250 N
Sum of forces in the y direction:
∑Fy = ma
Ry − 120 N − 300 N = 0
Ry = 420 N
Sum of forces in the z direction:
∑Fz = ma
Rz − 50 N = 0
Rz = 50 N
Sum of moments about the x axis:
∑τx = Iα
Mx + (-50 N)(0.2 m) + (-120 N)(0.1 m) = 0
Mx = 22 Nm
Sum of moments about the y axis:
∑τy = Iα
My = 0 Nm
Sum of moments about the z axis:
∑τz = Iα
Mz + (250 N)(0.2 m) + (-120 N)(0.16 m) = 0
Mz = -30.8 Nm
Answer:
import java.util.Scanner;
public class FindMatchValue {
public static void main (String [] args) {
Scanner scnr = new Scanner(System.in);
final int NUM_VALS = 4;
int[] userValues = new int[NUM_VALS];
int i;
int matchValue;
int numMatches = -99; // Assign numMatches with 0 before your for loop
matchValue = scnr.nextInt();
for (i = 0; i < userValues.length; ++i) {
userValues[i] = scnr.nextInt();
}
/* Your solution goes here */
numMatches = 0;
for (i = 0; i < userValues.length; ++i) {
if(userValues[i] == matchValue) {
numMatches++;
}
}
System.out.println("matchValue: " + matchValue + ", numMatches: " + numMatches);
}
}