Code Monkey home page Code Monkey logo

java-rogerian-therapist's Introduction

java-lab-3

Java lab for Introduction to Object Oriented Programming

Assignment:

Learn about ELIZALinks to an external site., an early natural language processing computer program created from 1964 to 1966 at the MIT Artificial Intelligence Laboratory. You can try out ELIZA hereLinks to an external site..

Brainstorm how you could create a program like ELIZA using the knowledge you currently have of Java. Even though simple, you will realize how complex natural language processing is and will appreciate ELIZA even more. Think about simple interactions strategies like: using a word from the previous sentence in the next sentence (ELIZA does that too). Prompting the user with word choices also makes it easier, for example:

You program: How are you feeling today? Options: sad, happy, tired or anxious User: tired Your program: Why are you tired?

Requirements for your program:

  • Create a name for your therapist. It may be your name, a combination of yours and your partner's name or something else
  • Have a welcome method that will print an introduction message on the screen
  • Create at least 5 pre-defined sentences in an array of sentences, so you can loop through the sentences as you engage with the user
  • In main, have a loop that will iterate until the user wants to quit talking to the therapist. Pick a word to end the dialog, such as "Goodbye"
  • Use a word from a sentence entered by the user in a follow-up question at least twice in the dialog. Have fun!

Style and Documentation

Follow naming convention for variables and methods, and recommended indentation.

  • Methods should be indented 4 spaces from class declaration
  • Statements inside methods should be indented 4 spaces from method header
  • Document your program following Javadoc format
  • Include a header at the beginning of your program that has:
  • description of the program
  • group#
  • your names as @author
  • date (@since)
  • Describe each one of the methods, including @param and @return
  • What to submit:

Please submit into the Partner Lab 3 drop box in your Canvas Assignment section:

  • Your source code .java
  • A screenshot of the documentation generated by javadoc
  • A screenshot of the dialog you will have while testing your program
  • Only one partner needs to submit. If you resubmit your program, make sure to include the whole package. Even if you need to upload a new version of the
  • .java only, make sure to upload everything again. It is a whole new submission!

java-rogerian-therapist's People

Contributors

wtsia avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.