Module 2. Data Types and Program Structure Exercises

1.  Re-write the C++ statement below to use the const variable
NUMBER_OF_PARTS to declare that the inventory array has 500 items of
type float.

   float inventory [500];

2.  Declare (globally) an enumerated type rainbow which consists of
the hues red, blue, green, and purple.  In the main function declare a
variable color to be of enumerated type rainbow.  Initialize color to
the constant blue.  Then, assign color the constant purple.

3.  Define an anonymous union consisting of the variables a (int), b
(float), and c (character).  Assign this union the value 223.