I NEED HELP PLEASE! WILL GIVE BRAINLIEST IF CORRECT! In a certain video game, the variable maxPS represents the maximum possible score a player can earn. The maximum possible score depends on the time it takes the player to complete the game. The value of maxPS should be 30 if time is greater than 120 and 50 otherwise.
Which of the following code segments correctly sets the value of maxPS based on the value of time ?

Select two answers.

I NEED HELP PLEASE WILL GIVE BRAINLIEST IF CORRECT In a certain video game the variable maxPS represents the maximum possible score a player can earn The maximu class=

Respuesta :

Code is given by (In python)

[tex]\tt if\:time>120:[/tex]

[tex]\quad\tt maxPS=30[/tex]

[tex]\tt else:[/tex]

[tex]\quad\tt maxPS=50[/tex]

  • Now if time is >120 maxPS is 30 else it's 50

Option D is correct

Option B is correct also as when the code goes outside else it takes 50 also

In this exercise we have to use the knowledge in computational language in python to write the following code:

We have the code can be found in the attached image.

So in an easier way we have that the code is

if time is >12

maxPS= 30

else = 50

See more about python at brainly.com/question/18502436

Ver imagen lhmarianateixeira