187k views
3 votes
Elena is programming a video game. She needs to simulate the power-up that the player gets when they reach a certain level. The computer can run a program to return a random integer between 1 and 100. Elena wants the best power-up to be rewarded 15% of the time. Explain how Elena could use the computer to simulate the player getting the best power-up at least 2 out of 3 times.

User Scomes
by
4.0k points

1 Answer

3 votes

Answer:

k = 13 ;

The smallest zero is x = -10

Explanation:


f(x) = x^2+3x-10

Where;


x = x+5

So;


f(x+5) = (x+5)^2+3(x+5)-10


f(x+5) = x^2+10x+25+3x+15-10


f(x+5) = x^2+13x+30

We all know that :
x^2+kx+30

where k is synonymous with 13


x^2+13x+30 = 0

solving this quadratic equation ; we have;


(x+10)(x+3) = 0


x+10 = 0\ \ \ or \ \ \ x+3 = 0


x = -10 \ \ \ or \ \ \ x = -3

Hence; The smallest zero is x = -10 as it is the least value on a number line.

User Shantanu Gupta
by
5.2k points