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), 21.06.2019 21:30
What does the phrase "aristocratic tastes" mean? a. a preference for a more elegant or fancy style b. a preference for simple things c. a preference for cheap and economical substitutes d. a preference for gaudy and expensive things
Answers: 1
question
Advanced Placement (AP), 23.06.2019 10:30
Another term for an organizational aid is ‘assistive image’. select the best answer from the choices provided
Answers: 3
question
Advanced Placement (AP), 23.06.2019 21:30
According to binet, mental age relates to chronological age because a. they are the same thing b. mental age involves calculating the chronological age at which a person functions c. chronological age involves calculating how a person is mentally functioning d. they are opposites 38
Answers: 1
question
Advanced Placement (AP), 25.06.2019 11:00
Which are the apprehensions of the consumers who shop online? consumers who shop online enjoy the convenience of shopping from home but are apprehensive about theft and loss of privacy.
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
Questions on the website: 13722363