# Computer

Suppose there are b black, w white and r red tiles on a table. We are allowed to replace two tiles of different colors with the third color. Note one thing here that this third colored tile is from our pool containing infinite black, white and red tiles.
If we start replacing tiles, can we reach at a state where there is only one tile left on the table?
If YES, then how? and what will be the color of that last tile?
If NO, then why not?
You have to solve this problem with the help of pre-conditions, post-conditions and invariant.
[Example: Let’s say, there are three tiles (1 black, 1 white, 1 red) on the table.
If we pick two tiles (say 1 black and 1 white), we have to replace them with 1 red tile. Now there will be 2 red tiles on the table with no white or black tiles. ]

1. 👍 0
2. 👎 0
3. 👁 175
1. TELL ME THE NSWER

1. 👍 0
2. 👎 0
posted by JAMAL
2. 15

1. 👍 0
2. 👎 0

## Similar Questions

1. ### Algebra 1

While playing a game, Rachel pulls two tiles out of a bag without looking and without replacing the first tile. The bag has two colors of tiles--black and white. There are 10 more white tiles than black tiles. a. Write and

asked by Serena on May 28, 2014
2. ### math

Bob made a square table top with 100 white square tiles. He painted the tiles along the edge of the table red. How many tiles are red? You must show your work

asked by mary on March 6, 2012
3. ### chemistry

which is the most reactive form of phosphorus? blue, red, white or black? or are they all equally reactive? I suppose its a matter of how you define reactive but I would go with white since that reacts at room temperature with

asked by naty girl on April 23, 2007
4. ### Algebra 1

While playing a game, Rachel pulls two tiles out of a bag without looking and without replacing the first tile. The bag has two colors of tiles--black and white. There are 10 more white tiles than black tiles. a. Write and

asked by Victoria on May 27, 2014
5. ### math

PHIL'S WIFE ROWENA, IS DECORATING A PORTION OF THE KITCHEN WALL BEHIND THE STOVE IN A MOSAIC MADE UP OF EQUAL NUMBERS OF BLACK,WHITE, AND RED TILES. THE SPACE MEASURES 6 FEET BY 2 FEET. THE MOSAIC TILES ARE 6 INCH SQUARES. HOW

asked by pinky on February 12, 2013
6. ### Math

Poor Delbert has been asked to do some tiling at home. He doesn't really understand the pattern. Can you help? How many black tiles to white? (1to every 2) There are 12 tiles in the pattern. Suppose there ere 60. How many black

asked by Sameeha on February 6, 2016
7. ### math

TILING A decroative floor pattern has one red square tile surrounded by 12 blue tiles. Write and evaluate an expression to show how many total tiles (red and blue) are needed if there are 15 red tiles. Then make a table showing

asked by cassandra on September 14, 2011
8. ### !!MATH!!

A decroative floor pattern has one red square tile surrounded by 12 blue tiles. Write and evaluate an expression to show how many total tiles (red and blue) are needed if there are 15 red tiles. Then make a table showing the total

asked by JACKY on September 30, 2011
9. ### Math accelerated

A decorative floor pattern has 1red square tile surrounded by 12 blue tiles.write and evaluate an expression to show how many total red and blue tiles are needed if there are 15 red tiles. Then make a table showing the total

asked by Jeontae on August 24, 2015
10. ### algebra

A worker placed white tiles around black tiles in the pattern shown in the three figures bellow. Based on this pattern, how many tiles would be needed for 14 black tiles?

asked by Anonymous on November 14, 2011

More Similar Questions