Once several tests and homework assignments have been completed and several class sessions have been recorded, I share the students grades with them. On the first day of class, I explain where the numbers come from. When they receive their grade they are usually surprised to see it is better than they expected having all the factors of the total grade considered. So even a student who is having difficulty with the subject and has not done well on test, can feel that their homework and class participation counts as well.