
Instructions This is a programming assignment. Your task is to write a program that implements one of the various methods we have seen in the unit to solve the classic “Einstein riddle”. You can write the program using R (preferably), Java, Python, or C/C++. The program has to be written so that it compiles and runs on Turing. If it doesn’t compile on Turing, no marks will be given. You must submit the source code for the program via e-submission in Moodle. The source code should be a single file. You can also submit a “readme” text file if there are any particular requirements to compile the program. A third file that can be included with the project is a “parameters” file if you decide to use one. The source code file name should be your FIRST_LAST name followed by the appropriate extension for the programming language used. The program should be terminal based and when executed, should provide all information about the author, what the program does, the description of the method to solve the problem, parameters that can be used, etc. We also expect some feedback on what the program is doing while solving the problem and, of course, the answer to the riddle. How you implement this is up to you. But, useability, information, ease of use, feedback to user will all be part of the evaluation. Only the program will be evaluated, not the source code per se (i.e. comments and description of algorithm inside the code will not be marked). Grading scheme Grades will be assigned based on: Ease of use: 10% User interface: 10% Description of algorithm (on terminal): 20% AI method used (i.e. more points for something smarter, even if overkill for the problem; hardcoding the solution is a straight fail): 30% Runtime information: 15% Presentation of results (in terminal, output files, images, etc; use your imagination): 15% Einstein’s Riddle This classic riddle is claimed to have been written by Einstein but it is sometimes also attributed to Lewis Carrol, although there’s no evidence that either of them actually wrote it. Regardless, it is an interesting problem that can be solved by logic but it also lends itself nicely as an AI programming exercise. There are many ways to code for this riddle – you are free to choose any approach you want. The riddle is: There are five houses in five different colours in a row. In each house lives a person with a different nationality. The five owners drink a certain type of beverage, smoke a certain brand of cigar and keep a certain pet. No owners have the same pet, smoke the same brand of cigar, or drink the same beverage. Other facts: The Brit lives in the red house. The Swede keeps dogs as pets. The Dane drinks tea. The green house is on the immediate left of the white house. The green house’s owner drinks coffee. The owner who smokes Pall Mall rears birds. The owner of the yellow house smokes Dunhill. The owner living in the centre house drinks milk. The Norwegian lives in the first house. The owner who smokes Blends lives next to the one who keeps cats. The owner who keeps the horse lives next to the one who smokes Dunhill. The owner who smokes Bluemasters drinks beer. The German smokes Prince. The Norwegian lives next to the blue house. The owner who smokes Blends lives next to the one who drinks water. The question is: who owns the fish?
The post Your task is to write a program that implements one of the various methods we have seen in the unit to solve the classic “Einstein riddle” appeared first on Homework Aider.
What Students Are Saying About Us
.......... Customer ID: 12*** | Rating: ⭐⭐⭐⭐⭐"Honestly, I was afraid to send my paper to you, but you proved you are a trustworthy service. My essay was done in less than a day, and I received a brilliant piece. I didn’t even believe it was my essay at first 🙂 Great job, thank you!"
.......... Customer ID: 11***| Rating: ⭐⭐⭐⭐⭐
"This company is the best there is. They saved me so many times, I cannot even keep count. Now I recommend it to all my friends, and none of them have complained about it. The writers here are excellent."
"Order a custom Paper on Similar Assignment at essayfount.com! No Plagiarism! Enjoy 20% Discount!"
