A student conducts an experiment to test how the temperature affects the amount of sugar that can dissolve in water. In the experiment, she uses 100 milliliters of water in each trial and stirs for five minutes each time.
What is the independent variable in this experiment?
A. the amount of water
B. the temperature of the water
C. the amount of sugar