//file tk10.3 Using enum Create a type, give it a name, tell the compiler what values your new data type will accept. Now you have an enumerated keyword called enum. An example: A data type called colors can be created that allows only the values red, green, blue, and yellow as data. enum sizes {small, medium, large, jumbo}; //sizes can have one of four values: small, medium, large, or jumbo. Now //declare two variables of the type. enum sizes drink_size, popcorn_size; //The variable drink_size and popcorn_size are of type sizes and can be //assigned one of the four sizes defined in the sizes type. The enumerated type value may not be printed or an error will result. Enumerated types are best used in expressions and switch structures, rather than directly for output. The compiler begins assigning integers with zero. Although you may choose your own values. Example: enum quantity {Single=1, Dozen=12, Full_Case=48, Gross=144}; enum month {January=1, February, March April, May, June, July, August, September, October, November, December}; An example of enum using integers: if (drink_size > medium) { cout << "This drink will not fit in your cup holder.\n";} Short Answer: 1. Write a statement that declares an enum type called speed that allows the values stopped, slow, and fast. 2. Write a statement that declares a variable named rabbit of the type you declared in question 1. 3. Write a statement that assigns the value fast to the rabbit variable you declared above. 4. What does the compiler use internally to represent the values of an enum type? 5. Write a statement that declares an enum type called temperature that allows the values frigid, cold, cool, mild, warm, hot, and sizzling. Have the list begin with the value 1. 6. Make a list of several different enumerated data types that could be useful in programs. For example, enum TrueFalse {FALSE, TRUE} or enum Position {open, closed}. 7. Write a program that uses a loop to encrypt a string by adding 1 to the ASCII value of each character in the string. The string "ABCDEF" would become "BCDEFG." The string "apple" would become "bqqmf." 8. Modify the program above to decrypt a string that has been encrypted using the method of Project 10-2.