Get a clear description of the problem to be solved.
Decide how to solve the problem.
Turn the solution into code.
Test the code.
Get a good grade.

Ask questions and show what you have done if...