In a study, a group of 10-year-old boys are fed doughnuts every morning for a week and thenweighed to see how much weight they gained. Which factor is the dependent variable?

a.The doughnuts
b.The boys
c.The duration of a week
d.The weight gained