A biologist wrote a program to simulate the population of a sample of bacteria. The program uses the following procedures.
Code for the simulation is shown below.
hours ←← 0
startPop ←← InitialPopulation ()
currentPop ←← startPop
REPEAT UNTIL ((hours ≥ 24) OR (currentPop ≤ 0))
{
currentPop ←← NextPopulation (currentPop)
hours ←← hours + 1
}
DISPLAY (currentPop - startPop)
Which of the following are true statements about the simulation?
The simulation continues until either 24 hours pass or the population reaches 0.
The simulation displays the average change in population per hour over the course of the simulation.
The simulation displays the total population at the end of the simulation.
a. I only
b. II only
c. III only
d. I and II