Question: You are given the following table. The provided starter code gets the x and y values from the user. The code you will write should
You are given the following table. The provided starter code gets the x and y values from the user. The code you will write should decide the cell color of the given (x, y).
- If (x, y) values are out of the table, give a warning message.
- If they are inside the table, display a message indicating if the cell is yellow, purple or no color.

Sample outputs:
Enter x: 1
Enter y: 1
No color!
Enter x: 4
Enter y:
Yellow! 4
Enter x: 9
Enter y: 9
Purple!
Enter x: 11
Enter y: 8
No color!
x values 7 8 9 10 11 1 2 2 3 4 5 6 12 13 14 15 y values 1 2 3 4 5 6 7 8 9 10
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
