Answer:
(b) (int)(Math.random() * 101)
Explanation:
Given
--- minimum
--- maximum
Required
Java expression to generate random integer between the above interval
The syntax to do this is:
(int)(Math.random((max - min) + 1) + min)
Substitute the values of max and min
(int)(Math.random((100 - 0) + 1) + 0)
Simplify the expression
(int)(Math.random(100 + 1) + 0)
(int)(Math.random(101) + 0)
(int)(Math.random(101))
Hence, the right option is:
(b) (int)(Math.random() * 101)
There is a equal amount I guess free points for me
Answer:
recognizing that gender differences are a myth.
Explanation:
The options are:
- active listening.
- recognizing that gender differences are a myth.
- structured debate.
- building cross-cultural understanding
Without active listening, structured debate, and cross-cultural understanding group conflict are definitely on the card. However, no one now is concerned about gender differences. As now both the genders are already having the equal status in at least developed countries. However, this too can play a role in avoiding group conflict. However, since this is not that important considering the current context, this looks like being the correct option here. Hence, the above mentioned in the answer section is the correct option.
It looks like you need to get both numbers from the input. Try doing something like this:
print(int(input()) + int(input()))