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

  Build a lottery game application

Create a lottery game application. Generate four random numbers, each between 0 and 9 (inclusive). Allow the user to guess four numbers.

  Why the user clicks the read file button to read the file

What I need help with is to get the dice to roll 100 times instead of just one. So read file results will show the results of 100 rolls of the dice. The file tab also has instructions as to how program should work.

  Creating the program

Develop a class named Book which holds a stock number, title, author, price, and the number of pages for a book. Involve a method which sets all the data files and another which prints the values for each data field.

  How could one improve such protocol

Considering the performance of a communincation protocol design, how may the number of messages have potentially the largerst impact as compared to the total amount of data.

  Challenges in delivering products -information over internet

One of the biggest challenges linked with the delivering products and information over Internet is the ease with which the others can infringe on other's rights. Provide some examples of this.

  Bus collision avoidance protocol

Before effective Ethernet switching existed, some network designers are used an alternative bus collision avoidance protocol termed as the token bus protocol.

  Determining time complexity

Specify the function of procedure DOES SOMETHING? What is the time complexity of the procedure?

  Write c program ''myls'' that functions like unix command ''ls''

Write C program 'myls' that functions like unix command 'ls'.

  Define analog signal conditioning

Analog Signal Conditioning, An LVDT with associated signal conditioning will be used to measure work-piece motion from -20 to +20 cm. The static transfer function is 2.5 mV/mm. The output will be interfaced to a computer via an ADC.

  New system implementation

In new system implementation, what could you do as the lead system designed to assure the implementation went smoothly?

  Explain the evolution of machine language

consider the evolution of machine language from generation one to fifth generation programming language. Also Explain what you think about the future of programming language?

  Designing program

Write down a Program that lets the user enter an amount as a float value representing a total in the dollars and cents.

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