Final answer:
Jared is measuring the amount of foam in each glass to determine the amount of carbon dioxide produced in a gas-forming reaction.
Step-by-step explanation:
Jared is measuring the amount of foam in each glass to determine the amount of carbon dioxide produced. The formation of foam is evidence that a gas-forming reaction is taking place because carbon dioxide is a product of this reaction.
When a carbonated beverage is opened, the pressure of the CO₂ above the solution drops rapidly. This causes some of the dissolved carbon dioxide to escape from the solution as bubbles. The height of the foam can be used as an indication of the amount of carbon dioxide produced.