1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Shtirlitz [24]
3 years ago
15

Elana 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 - 100. Elana wants the best power up to be rewarded 15% of the time. Explain how Elana can use the computer to simulate the player getting the best power up at least 2 out of 3 times
Mathematics
1 answer:
zvonat [6]3 years ago
7 0

Answer:

You have to define when the power should be pushed up using the 'For' statement and let an impulse be sent to the CPU to increase power by 15%

Step-by-step explanation:

We use certain functions in writing computer programs.

For the 'For' statement ; we can define conditions. First Elana would define at what point does she want the player power to get the best power.

For example if she defines that when the player has played for 2hours return an integer 1 for instance.

This value returned will now send a pulse to the CPU to increase its power to 15%.

If the player plays for further 1hour she can define the count to be 10 and so send another pulse to the CPU to increase the processing power by additional 15%

You might be interested in
What is the value of 2 cubed
Phoenix [80]
2 cubed. Cubed also means multiply so enjoying by itself times. So, 2 * 2 = 4 * 2 = 8. 2 cubed = 8
8 0
3 years ago
What is the Slope of a line that passes through the points (-3,5) and (1,7) ?
Naya [18.7K]
Find the change in the y coordinates

7-5=2

Find the change in the x coordinates 

1--3 or 1+3= 4

Divide the changes in the y and x coordinates

2/4= 1/2

The slope is 1/2. Hope this helps!
6 0
3 years ago
Read 2 more answers
Jake and Gloria are running on the track team. Gloria can run twice as many miles as
Tanzania [10]

Answer:

J+2J=12 so 3J=12 so J=4

Step-by-step explanation:

Use J to represent Jake's miles.

We know that Gloria's miles (G) is twice J, so G=2J

We also know that Jake and Gloria together ran 12 miles.

So we know, J+2J=12 or 3J=12   meaning J=4

So Jake runs 4 miles, and since Gloria is two times that she ran 8 miles.

6 0
3 years ago
What is the volume of the prism?
jok3333 [9.3K]

Answer:

78.75 cm³

Step-by-step explanation:

Volume = Width × Height × Length

V = 5 × 4.5 × 3.5

V = 78.75 cm³

8 0
3 years ago
John works 6.50 per hour. he worked 40.0 hours last week. what amput is on his check?
qaws [65]

Answer:

40 * 6.5 = 260 --> D. 260.00

7 0
3 years ago
Read 2 more answers
Other questions:
  • 14.90hr with a 10% raise in hourly pay every year. What is my rate of pay after 2 years
    7·1 answer
  • Lines a,b,c, and d are in the same plane. Line a is parallel to line c. Lines b and c are perpendicular to line d. Based on this
    9·2 answers
  • Which one A or B or C help pls!
    7·2 answers
  • The area of a rectangle is 12 square units. If the length and width of the rectangle are both enlarged by a factor of 3, which o
    14·1 answer
  • What is the lateral surface area of the rectangular prism. <br><br>a 520<br>b 856<br>c 576<br>d 616​
    8·1 answer
  • I don’t know it help!
    11·1 answer
  • What is the answer please due in 15 mins
    10·2 answers
  • Points, in case you need to ask a question.
    12·2 answers
  • Let f(x) = x-3 and g(x) =x^2 find f(g(4))
    11·1 answer
  • The ratio 20mins to 1 hour can be written in the form 1:n find the value of n.
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!