Write out a program that acts as a simplified eliza

Assignment Help Computer Engineering
Reference no: EM13323167

write out a program that acts as a simplified Eliza using prolog but I can't even figure out where to start. Here are the steps I have to follow. 1. accept a sentence that is typed in by the user as a list, 2. change each 'you' in the sentence to 'i', 3. change each 'i' in the original sentence to 'why do you', 4. change each 'are' to 'am not', 5. change each 'do' to 'no, ' (change to no with a comma and a space after the word), 6. change ‘portuguese' to ‘russian', 7. write out the changed sentence as a response to the user, note that the response should not be a list but words separated by spaces (hint: you probably need a separate recursive output predicate instead of writing the list straight to the terminal). Also I'm using swi-prolog.

Reference no: EM13323167

Questions Cloud

Describe feedforward controls-concurrent controls : Please Define "Controlling." Please describe Feedforward Controls, Concurrent Controls, and Feedback Controls. Why are Feedforward Controls typically the most useful?
What is the angle of the first dark fringe in degrees : Infrared light of wavelength 1.17 um illuminates a 0.34-mm-diameter hole. What is the angle of the first dark fringe in degrees
Contrast price skimming and penetration pricing strategies : Contrast "Price Skimming" and "Penetration Pricing" strategies. Which strategy would be more effective for a new "leading edge" video game console?
What is the speed of the bead : A block rests on a spring and oscillates with a frequency of 4Hz and an amplitude of 7cm. What is the speed of the bead at the instant when it loses contact with the block
Write out a program that acts as a simplified eliza : write out a program that acts as a simplified Eliza using prolog but I can't even figure out where to start. Here are the steps I have to follow. 1. accept a sentence that is typed in by the user as a list.
What is the maximum acceleration of the eardrum : When responding to sound, the human eardrum vibrates about its equilibrium position. What is the maximum acceleration of the eardrum
Determine the total length-depth of the pile : Using a safety factor of 2.00 and neglecting the pile dead weight, find the length of a 1' diameter circular concrete pile required to take a design load of 50 kips in a soil composed of two layers.
How much energy is dissipated in this collision process : A 4 kg block, resting on a horizontal surface, is struck by a bullet moving horizontally with a speed of 200 m/s. How much energy is dissipated (mostly as heat) in this collision process
Does sight accomodate needs of diverse customer base : Describe how visually appealing it is and organized briefly explain. Is it user friendly and easy to navigate? explain with example how it is. Describe different contact methods available to customer to contact representative, make purchase, inquire ..

Reviews

Write a Review

Computer Engineering Questions & Answers

  Create testing cases with cartesian

My task for this exercise is to usage Equivalence Class partitioning and Boundary Value Analysis (which means to test the input at the boundary of the equivalence class partition) to analyze the valid and invalid inputs for Microsoft WinWord or an..

  The web to find examples of the following site structures

Browse Web to find examples of the following site structures (A. Linear and B. Hierarchical) and describe how the content fits the structure.

  Compare productivity based solutions

Microsoft has expended a lot of effort into developing productivity tools for the Web, particularly with the .NET strategy. though, there are many other tools for creating Web solutions.

  Enterprising the data mining and data warehousing

Discuss the most proficient ways in which an organization may invest in enterprising the data mining, data warehousing, and the data analytics capabilities.

  Difference between stratified and random sampling

What is the difference between stratified and random sampling and what were the similarities and differences between oneperquad and twoperquad? Be sure to explain pattern, dispersion, and density.

  Estimating the output

Provided: enum cropType {WHEAT,CORN,RYE,BARLEY,OATS} cropType crop;

  Describe the different roles

define the different roles you think might be fulfilled by Web Services and Web Portals. What do you see as the major distinctions between the two from the perspective of provisions of eBusiness services? Which do you think is the more useful in t..

  Vulnerabilities in purchasing through debit card

Recognize any potential vulnerabilities in act of making a purchase through the debit card, and which area of the CIA triad they apply to.

  Discussing the challenges of security

Recognize and discuss one of the challenges of the security and three vulnerabilities that are associated with use of the wireless network.

  Write down a c++ program for little man''s computer

A text file containing machine code (not assembly code) for little man's computer following instruction set . Instructions are in different lines (no need for semicolon at the end of each instruction)

  How to generate 2 instances of time and date

generate an application that uses both Time and Date classes How to generate 2 instances of Time and Date

  Explain the features and characteristics of atm networks

explain the features and characteristics of ATM networks, as well as their benefits and limitations.

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