Why is it important to engage students in planning an investigation

Why is it important to engage students in planning (rather than just conducting) an investigation?