Answered

A student is creating a procedure to determine whether the weather for a particular month was considered very hot. The procedure takes as input a list containing daily high temperatures for a particular month. The procedure is intended to return true if the daily high temperature was at least 90 degrees for a majority of days in the month and return false otherwise. Which of the following can be used to replace so that the procedure works as intended?

a) counter < 0.5 * total

b) counter > 0.5 * total

c) total < 0.5 * counter

d) total > 0.5 * counter

Answer :

Other Questions