Problem Set 5
Home Up Problem Set 1 Problem Set 2 Problem Set 3 Problem Set 4 Problem Set 5 Problem Set 6 Problem Set 7 Problem Set 8 Problem Set 9 Problem Set 10 Final Project

 

Due 5PM Friday, October 15.

Chapter 12:

  1. Exercise 12.2 in SOE.  (See p. 333 for a definition of the Enum class -- and note the default methods!!)

Chapter 13:

  1. Exercise 13.1 in SOE.  Also:  Can you think of any useful laws that instances of class Combine should obey?
     
  2.  Exercise 13.2 in SOE.  Note:  Your solution should be modular.  In particular, it should be easy to add more planets and/or planet-moon systems.  To do this right, you will probably want to translate (and possibly scale) Pictures and, more importantly, values of type Behavior Picture.  Your grade will be based partially on how well your code is structured.
     
  3. Extra credit:    Exercise 13.3 in SOE.

 

Solutions.