Question: In C++, define enumeration type Paint that has the exact values [red, blue, yellow, green, orange, purple] Write function paintType that takes an argument of

In C++, define enumeration type Paint that has the exact values [red, blue, yellow, green, orange, purple] Write function paintType that takes an argument of type Paint. The function will test the argument and print out "primary color" if the color is red, blue, or yellow and will print out "mixed color" otherwise. Your selection structure should use a relational expression. Your main function will prompt the user for a number and convert the number to a enumeration type Paint value: 0-red 1-blue 2-yellow 3 green 4-orange 5-purple Your output should look like this one: of the following 5=purple): colors (O-red, 1-blue, 2-yellow, 3=green, Enter any 4-orange, 4 The color you entered is a mixed color! of the following 5=purple): colors (O-red, 1-blue, 2-yellow, 3=green, Enter any 4-orange, 20 The color Enter any 4-orange, you entered is an incorrect option! of the following colors (O-red, 1-blue, 5-purple): 2-yellow, 3=green
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
