0
   

Identify the Car!

 
 
Reply Wed 15 Oct, 2008 09:30 am
Five cars from five different cities are standing next to each other on a car park. All of the cars have different colours and are produced by different manufactures. The cars have all different music CDs in the CD-player and have owners with different jobs.

The Ferrari is red.
The owner of the silver car is a teacher.
A Madonna-CD is in the Volkswagen.
The BMW is from Munich and stands next to the blue car.
The car from Hamburg stands next to the brown car.
The butcher's car has an Abba-CD in the CD-player.
The car with the Beatles-CD stands next to the teacher's car.
The lawyer is the owner of the car from Cologne.
The Smart stands next to the blue car.
The cabinetmaker owns the Ford.
The green car is from Hamburg.
The baker's car stands next to the car from Berlin.
The car with the Eminem-CD is the fourth on the car park.
The car beside the car from Stuttgart is not a BMW.

In which car is the Santana-CD? Which colour has the car and from which city does it come from? And what kind of job has the owner of this car?
  • Topic Stats
  • Top Replies
  • Link to this Topic
Type: Question • Score: 0 • Views: 681 • Replies: 1
No top replies

 
Nick Ashley
 
  2  
Reply Wed 15 Oct, 2008 09:47 am
@Dtoxikated,
I used to love doing these!

This is kinda off topic, but as a freshman in college, I took a class on an obscure logic programming language called prolog. The way prolog worked was you would give it a set of 'facts' and then give it an equation to solve for.

It was therefore very easy to create programs that would solve these types of logic problems. In fact our final project was a program that would solve this ridiculously huge logic problem, with hundreds of facts. It was cool to see it solve them so elegantly.

I don't have time to work on this now, but I might later. I would love to write a prolog program to solve this, but I don't have nearly enough free time for that...
0 Replies
 
 

Related Topics

Alternative Einstein's riddle answer - Discussion by cedor
Urgent !!! Puzzle / Riddle...Plz helpp - Question by zuzusheryl
Bottle - Question by Megha
"The World's Hardest Riddle" - Discussion by maxlovesmarie
Hard Riddle - Question by retsgned
Riddle Time - Question by Teddy Isaiah
riddle me this (easy) - Question by gree012
Riddle - Question by georgio7
Trick Question I think! - Question by sophocles
Answer my riddle - Question by DanDMan52
 
  1. Forums
  2. » Identify the Car!
Copyright © 2024 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.04 seconds on 04/19/2024 at 05:31:46