The challenge, should you decide to accept it, is to provide a solution to the 5 houses, 5 people, 5 pets, 5 drings and 5 cigarette problem. This problem solving exercise involves rule logic as well as generate and test logic.
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. Deliver *.cpp code at a Beginner's Programming Level.
The Basic information: 5 colored houses - red, ivory, yellow, blue & green
5 Nationalities - Englishman, Spaniard, Ukranian, Norwegian & Japanese
5 pets - dog, snail, fox, horse & zebra
5 drinks - water, coffee, milk, orange juice & tea
5 cigarettes - Old Golds, Kools, Chesterfields, Lucky Strike & Parliaments
The Basic Relationship Rules -
Eash house has only one person, one drink, one pet and one cigarette type
The Englishman lives in the red house
The Spaniard owns the dog
The Ivory house is immediately to the left of the Green House where the coffee drinker lives
The Milk Drinker lives in the Middle House
The man who smokes Old Golds, also keeps snails
The Ukranian drinks tea
The Norwegian resides in the first house on the left
Chesterfield smoker lives next door to the fox owner
The Lucky Strike smoker drinkgs orange juice
The Japanese Smokes Parliaments
The horse owner lives next to the Kools smoker whose house is yellow
The Norwegian lives next to the blue house
Problem: Who lives in what color house, drinking what drink, smoking what cigarette, and has what pet with them?
Solution, Any graphic presentation may be used provided it shows the rule limitations imposed, the assumptions and final test results
C++ on Windows 2000
## Deadline information
I have attached a *.zip file which contains a *.pdf of one way in which to solve this. It is in a chart type format.
There are 3 different answers to this problem...only one needs to be solved for.
Again, the *.cpp file should be delivered, in Basic Beginner's C++ format with very detailed documentaion.