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

Other questions on the subject: Advanced Placement (AP)

image
Advanced Placement (AP), 25.06.2019 21:30, ridzrana02
Most signs are diamond-shaped, with a yellow background and black letters or symbols. a. regulatory b. guide c. warning d. construction
Answers: 2
image
Advanced Placement (AP), 26.06.2019 04:30, rallen1158
Free 99 pts answer before ! i'm just bored
Answers: 2
image
Advanced Placement (AP), 26.06.2019 13:50, mydoggy152
Which of the following characteristics would be more important to an organism adapted for life in a marsh than for an organism adapted for life in a river? tolerance for variable ph tolerance for variable salinity tolerance for variable pressure tolerance for variable water velocity tolerance for variable water availability
Answers: 1
image
Advanced Placement (AP), 28.06.2019 05:30, laurynrobinson21
Critics claim that the biological theory of personality may be problematic for research due to which of the following? a. there is already too much theoretical work concerning biological influences on personality. b. biological influences on personality are impossible to scientifically research. c. the biological theory provides little structure to direct or guide research. d. biological theorists have had difficulty establishing supportive research for the biological perspective.
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 in other subjects:

Konu
Mathematics, 05.05.2020 20:30
Konu
History, 05.05.2020 20:30