You will be randomly assigned one of two exercises to re-write. In both cases, you should start by copying the final solution from the website at http://teach.millard.org/co311/solutions/3_22/step7.htm. Both solutions will ask you to modify the existing code to add new functionality. Please read the entire problem before jumping into the code!
enum color { Black, White, Red, Green, Blue, Yellow, Cyan, Magenta };
is equivalent toint Black = 0;
int White = 1;
int Red = 2;
int Green = 3;
int Blue = 4;
int Yellow = 5;
int Cyan = 6
int Magenta = 7;
int
s to specify the
colors (with an appropriate legend for picking colors), instead of reading and parsing
text names into the enumerated type. In all cases, the first color entered must be the
upper-left box of the checkerboard.You must make the proper changes to prototypes and parameters and provide an appropriate driver/test program for the functions.
Submit the finished CPP file to the FTP site in its own folder called P3.
You will have 45 minutes to complete the assignment.