CS 123 Homework #2

Due: Oct. 1

You managed to save the world from destruction last week, however there is no time to rest. Vigilance is our only hope for survival, you must complete the following rigorous assignment, before it is too late!

  1. You are encouraged to go through all the problems in the "quick check" section at the end of each chapter as a key to topics that appear in the readings but were not covered in class. I will not always be pointing these out to you, you are responsible for doing the reading. This week, in particular, the topics of flags and loop invariants were not covered. Read those sections.

  2. Do problems 9 and 12 on page 316-317 of the C++ book, in the section entitled Exam Preparation Exercises (the answer to problem 9 is in the back of the book).

  3. Do problems 1 and 4 on page 319-320 of the C++ book, in the section entitled Programming Problems.

  4. Do problems 2-3 on page 321 of the C++ book, in the section entitled Case Study Follow-Up. These problems will require you to familiarize yourself with the case studies provided in Chapter 6

You should create a directory for this homework assignment. Each of the problems requiring programming should appear in a separate file. You can put all the problems requiring text answers into one file, or use separate files for each.