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);
}
}
Answer:
Kindly follow the steps as shown below.
Explanation:
Answer:
Yes, the flow is turbulent.
Explanation:
Reynolds number gives the nature of flow. If he Reynolds number is less than 2000 then the flow is laminar else turbulent.
Given:
Diameter of pipe is 10mm.
Velocity of the pipe is 1m/s.
Temperature of water is 200°C.
The kinematic viscosity at temperature 200°C is
m2/s.
Calculation:
Step1
Expression for Reynolds number is given as follows:

Here, v is velocity,
is kinematic viscosity, d is diameter and Re is Reynolds number.
Substitute the values in the above equation as follows:


Re=64226.07579
Thus, the Reynolds number is 64226.07579. This is greater than 2000.
Hence, the given flow is turbulent flow.