The right way to represent a finite set of alternatives — Often, programmers wish to represent something in their code whose value must belong to a predetermined, finite collection of values. Examples include: Days of the week: Monday, Tuesday, …, Sunday. Types of image file format: JPEG, PNG, GIF, …. The suits in a card game: club, diamond, heart, spade. The…