California students will have to complete a course in pocketbook economics — balancing a checkbook, managing credit cards, avoiding scams — to graduate from high school under a bill that will become law, state lawmakers announced Thursday.