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).

  1. If (x, y) values are out of the table, give a warning message.
  2. If they are inside the table, display a message indicating if the cell is yellow, purple or no color.

You are given the following table. The provided starter code gets the

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!