Sorry to bombard this message board with simple questions, but I am teaching myself this and it's really not going too well. I wasn't sure the best subject line for this question either.
There is an exercise at the end of one of the chapters in this book where it presents most of a code with just 2 parts taken out. You are supposed to put in certain pieces of the code into their respective parts and predict the output. I am having a lot of trouble with this both understanding line by line what is going on, and overall.
Here is the code, as well as what I understand each line is doing. The "//insert ..." are the different pieces the code gives, with the first piece of the first line going with the first piece from the second line. Anything in bold is my comments about the code.
Hopefully this all shows up how I want it to. If not, or it's not clear in any way, please don't hesitate to ask. I appreciate any responses at all since I know this is kind of an involved question. Thanks.