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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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