Page 1161 - AP Computer Science A, 7th edition
P. 1161

36. (C) On average the computer will make 50 guesses. The user is equally likely to pick any number between 1 and 100. Half the time it will be less than 50; half the time, greater than 50. So on the average, the distance of the number from 1 is 50.


































































































   1159   1160   1161   1162   1163