Answer:
Hey there!
We can't compare two measurements without converting them to the same units. Thus, we use proportions to make all the values into the same unit.
, which converts to centimetres to millimetres.
12.5 cm=125 mm.
Now, we can compare the values of 125 mm and 140 mm.
Clearly, we see that 140 mm is greater than 125 mm.
Let me know if this helps :)
NB- Solution is emboldened
import java.util.Scanner;
import java.util.Random;
public class RandomGenerateNumbers {
public static void main (String [] args) {
Random randGen = new Random();
int seedVal = 0;
seedVal = 4;
randGen.setSeed(seedVal);
System.out.println(randGen.nextInt(50) + 100);
System.out.println(randGen.nextInt(50) + 100);
return;
}
}