Ответ:

James is happy because he has done his homework and can go to the cinema with his friends.