Create a prolog program that solves the logic puzzle

Assignment Help Programming Languages
Reference no: EM131476563

Question: Create a Prolog program that solves the following logic puzzle, printing the right answer for each of the four cases.

There are 4 customers: Genevieve, Lucia, Shawna, Vanessa

There are 4 shoe sizes: 4, 5, 6, 7

There are 4 shoe manufacturers: Abbott Hill, Manzarita, Graffetz, Williford

1. Of the Manzarita footwear and Lucia's pair, one was a size 7 and the other was a size 4.

2. Genevieve's pair was 2 sizes smaller than the Abbott Hill footwear.

3. Vanessa's pair was 2 sizes larger than Genevieve's pair.

4. The Graffetz footwear was somewhat larger than Shawna's pair.

For each customer, show their name, their shoe size and their shoe's manufacturer in a format similar to this:

Joe bought a size 13 Nike.

Tom bought a size 12 Reebok.

Reference no: EM131476563

Questions Cloud

What is system architecture : System Architecture- write a minimum 400 words on Microsoft Offfice APA format on the below questions, please provide references.
Provide one example of business management applying : Discussion: "Statistical Engineering Frameworks"- Provide one example of business management applying each framework to support your response.
Describe gang migration and immigration : Explain how the threat of gang violence impacts the surrounding businesses and communities.Describe gang migration and immigration.
Examine the theoretical framework : In an analysis of 750-900 words, examine the theoretical framework, style, and leadership traits presented in the selected book.
Create a prolog program that solves the logic puzzle : Create a Prolog program that solves the following logic puzzle, printing the right answer for each of the four cases
Write a code solving the pred-prey ode system : Goals: All projects are intended to make use what we learned over the course; in particular all projects will require you to implement an "event-like" ROOT.
Suggest the main tools that you would use : Suggest the main tools that you would use and the data that you would collect in order to analyze the business process and correct the problem.
What were the solutions used to address the problem : What were the solutions used to address the problem? Was the case you described a special-cause or common cause? Do you feel the solution or approach used?
How you integrate creativity into your own planning process : Identify the key steps that might require a contingency plan. Explain how you might integrate creativity into your own planning process.

Reviews

Write a Review

Programming Languages Questions & Answers

  Add a selection list for the state.

nput button that calls function that validates e-mail address by checking for @ sign. If no @ sign is found, display a message.

  Develop the application to show coffee customer orders

Develop the application which shows the total pounds of coffee customer orders, sales tax, and total price of order. Write down the name the solution, project, and form file Jason Coffee Solution, Jason Coffee Project.

  Program that satisfies requirements of programming project

Write a program that satisfies the requirements of Programming Project 2 of Hanly, and that uses the following modifications and tips -Use the COLOR_CODES string array.

  Creating application to test class rectangle

Write down application to test class Rectangle.

  Calculating the center of mass of red markers

In the video clip, the monkey is moving. Firstly, red markers create on head, body, hands and feet of monkey. And then track the monkeys' movement with calculating the center of mass of red markers

  Develop a test application named testrental

Develop a test application named TestRental that tests your three classes. The test application must print at least three invoices.

  Write a script that calculates the squares and cubes

Write a script that calculates the squares and cubes of the numbers from 1 to 6 and outputs HTML5 text that displays the resulting values in an HTML5 table format, as shown below.

  Develop program emulate purchase transaction at retail store

Develop a program to emulate a purchase transaction at a retail store. This program will have two classes, a LineItem class and a Transaction class.

  Direction and magnitude be integers or doubles

Design the program consider Will the direction and magnitude be integers or doubles - will the input vectors be passed by value, by reference, or by const reference?

  Deleting and recovering the shell path variable

Deleting and Recovering the Shell PATH Variable, uppose a CIS255 student was experimenting with shell variables and accidentally deleted his / her PATH variable. The student decided he / she does not need the PATH variable.

  Write the code required to analyse and display

Engineer for a materials manufacturing research lab and have been asked to provide an automated solution to analyse data.

  Use for loop to calculate sum of squares of numbers

Given int variables k and total which have already been declared, use the for loop to calculate sum of squares of first 50 counting numbers, and store this value in total.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd