cpp finish chapter 6: branching statements and logical operators