Observe the graph :
\The number of dogs walked is the independent variable because it is unaffected by the amount earned.
\The amount earned is the dependent variable because it depends on the number of dogs walked.
\The number of dogs walked is the independent variable.
\The amount earned is the dependent variable.