<u>Answer:</u>
<em>1. The loop will run unless the value of answer equals to Capital N.</em> The method equals is “case-sensitive” that is lower case letter and upper case letters are considered different. That “a” and “A” means the same to us, but for the method equals it is different and equals method will return false if the case is not matching.
<em>2. a (int)(Math.random() * (upper − lower) ) + lower </em>
Since we need to consider the lower limit value together to get the desired results we need to add the value of lower limit to the multiplied answer.
<em>3. b while(userGuess != secretNumber || userGuess >= lowerLimit && userGuess <= upperLimit)</em>
Here the program is required to check the while loop and exit when user guess the number or we can say the loop should continue until the user guess the number, so that is why we have taken <em>userGuess!=secretNumber. </em>Next the loop should be exited if it is not within the range or we can say that the loop should run only if the guessed number is within the upper and lower limit.<em> That is why we have opted for the condition userGues>=lowerlimit && userGuess<=upperlimit.</em> Why we have taken && as the operator is that, it’s a range of values so && operator best suit for this kind of logical condition.
Answer: Unable to follow normal shutdown process creates a bad sector on the harddrive and too much of this crashes the disk .
If a code word is defined to be a sequence of different letters chosen from the 10 letters A, B, C, D, E, F, G, H, I, and J, wha
netineya [11]
Answer:
The answer is 6:1 .
Explanation:
We don't need to have prior knowledge of combination or permutation.
Count the way to chose 4 letters.As given in the question chose sequence of different letters
For first place we have 10 letter
For second place we have 9 letter as one is already out
For 3 place we have 8 letter as two letter are already out
For 4 place we have 7 letter as three letter are already out
Total group of 4 letters = 10 * 9 *8*7
Similarly form group of 5 letters we have
Total group of 5 letters = 10 * 9* 8 * 7*6
then Calculating ratio between 4 and 5
We have,
Group 5 : Group 4 ::10 * 9* 8 * 7*6:10 * 9 *8*7
: : 30240 : 5040
divide by 5040 on both side we get
Group 5: Group 4 :: 6 : 1
The best awnser is D but A is also doable