Respuesta :
Answer:
The correct option is;
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
Explanation:
The function of the score tracking application in the game = The sort and track the minimum and maximum
The variable, num, is used to indicate the value of the latest score obtained
The num variable is compared with the existing values stored in the minimum and maximum variables with an if condition
When the num satisfies te if condition, the value in the num variable replaces the value in the minimum or maximum variables respectively.
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.
The game keeps track of of the maximum and minimum scores obtained. This means the game already have the maximum and minimum score in it memory.
Now , if a new score named num is obtained, for the game to update the minimum and maximum score it has to cross check the recent score , num with the minimum and maximum score. If the recent score, num is less than the minimum score, the minimum score is updated to the score, num.
Also, If the recent score, num is greater than the maximum score, the maximum score is updated to the score, num.
Therefore, the answer :
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.
Read more here: https://brainly.com/question/20326478?referrer=searchResults