Student can be claimed as dependent on parents' tax return.
Yes, the student can contribute all $3,100 of the earned income to a Roth IRA. Being claimed as a dependent doesn't affect eligibility.
Thank you!