subject

1. A certain game keeps track of the maximum and minimum scores obtained so far. If num represents the most recent score obtained, which of the following algorithms correctly updates the values of the maximum and the minimum? A If num is greater than the minimum, set the minimum equal to num. Otherwise, if num is greater than the maximum, set the maximum equal to num.

B If num is less than the minimum, set the minimum equal to num. Otherwise, if num is greater than the maximum, set the maximum equal to num.

C If num is less than the minimum, set the minimum equal to num. Otherwise, if num is less than the maximum, set the maximum equal to num.

D If num is greater than the minimum, set the minimum equal to num. Otherwise, if num is less than the maximum, set the maximum equal to num.

ansver
Answers: 1

Another question on Advanced Placement (AP)

question
Advanced Placement (AP), 22.06.2019 22:00
Find a word that makes the both words
Answers: 1
question
Advanced Placement (AP), 23.06.2019 17:00
What was the main aim of the northwest ordinance of 1787
Answers: 1
question
Advanced Placement (AP), 24.06.2019 22:30
Gneiss is formed. the mineral grains in which granite are flattened under pressure
Answers: 1
question
Advanced Placement (AP), 25.06.2019 23:00
The annual earnings of a typical investor are $1,000,000 to $10,000,000. $100,000 to $500,000. $60,000 to $200,000. $40,000 to $80,000.
Answers: 1
You know the right answer?
1. A certain game keeps track of the maximum and minimum scores obtained so far. If num represents t...
Questions
question
Mathematics, 07.06.2021 20:30
question
Mathematics, 07.06.2021 20:30