CMP 167 Project 2 In 1996 there was a program named ELIZA. It parodied a psychotherapist session,…

CMP 167 Project 2

In 1996 there was a program named ELIZA. It parodied a psychotherapist session, such that the user would type sentences and the program used those words to compose a question. Your project will be similar in concept.

What you need to know to complete the project:

  • Use the Scanner class to retrieve input from the user
  • Manipulate Strings
  • Work with Arrays
  • Loops for repetition
  • If-Else for logical decision branching
  • Using Classes and Methods

Program Details and Requirements:

Example:

ELIZA: Hello, my name is Eliza. What is your name?
USER: Wonder Woman
ELIZA: Hello, Wonder Woman. Tell me what is on your mind today in 1 sentence.
USER: Today is Friday.
ELIZA: Today seems important to you, so does Friday. Please tell me more.
USER: Friday is a fantastic day.
ELIZA: Friday and day seem to be on your mind. Let's talk about it.
USER: Why do want me to talk about Friday?
ELIZA: Does Why bother you? How about Friday?
USER: No!
ELIZA: WOW! Dramatic! No and No seem to be on your mind. Let's talk about it.
USER: I want to talk about the project.
ELIZA: I seems important to you, so does project. Please tell me more.
USER: EXIT
ELIZA: Do you want to run the session again?
USER: No
ELIZA: Goodbye, until next time

To have your project graded as per the rubric and earn points:

  1. Use the starter code to create your Prompt Bank and modify it to work with your project. (Note: remove any existing bugs and write additional code as needed)
  2. Your project should have 2 classes or more. 1 class is the starter code PromptBank, the other is your program’s logic.
  3. The initial greeting should say “Hello, my name is Eliza. What is your name?
  4. The user should enter their name.
  5. Then the program should greet the user by name and prompt them for input related to the therapy session “Hello **username. Tell me what is on your mind today in 1 sentence.”
  6. When the user submits their sentence your program should read in the line
  7. It should use the 1st word and last word from that line to form another prompt to the user by plugging those words into a statement or question randomly selected from the relevant array.
  8. Create methods that work with the starter code to replace BLANK1 and BLANK2 with the words from the line
  9. If the sentence the user enters ends with a ‘?’, the program should prompt the user with a question built using the 1st word and last word of their line.
  10. If the sentence the user enters ends with a ‘!’, the program should prompt the user with a statement that starts with “WOW! Dramatic! ” followed by the rest of the statement built using the 1st word and last word of their line.
  11. If the sentence the user enters ends with a ‘.’ or any other character, the program should prompt the user with a statement built using the 1st word and last word of their line.
  12. This process should be repeated until the user types “EXIT” as a response When the user types “EXIT” the user should be asked if they want to run the session again.
    • If they say yes, upper or lower case, run the program from the beginning”
    • If they say no, upper or lower case, say “Goodbye, until next time”
  13. Some of the things you’ll need to do to get the Project to work:

    1. Initialize your arrays to the appropriate length.
    2. Modify the existing methods in the starter code to populate the arrays by following the code comments
    3. Create methods to replace BLANK1 and BLANK2 in the sentence trunk you got from the array

Calculate the price
Make an order in advance and get the best price
Pages (550 words)
$0.00
*Price with a welcome 15% discount applied.
Pro tip: If you want to save more money and pay the lowest price, you need to set a more extended deadline.
We know how difficult it is to be a student these days. That's why our prices are one of the most affordable on the market, and there are no hidden fees.

Instead, we offer bonuses, discounts, and free services to make your experience outstanding.
How it works
Receive a 100% original paper that will pass Turnitin from a top essay writing service
step 1
Upload your instructions
Fill out the order form and provide paper details. You can even attach screenshots or add additional instructions later. If something is not clear or missing, the writer will contact you for clarification.
Pro service tips
How to get the most out of your experience with Online Academic Experts
One writer throughout the entire course
If you like the writer, you can hire them again. Just copy & paste their ID on the order form ("Preferred Writer's ID" field). This way, your vocabulary will be uniform, and the writer will be aware of your needs.
The same paper from different writers
You can order essay or any other work from two different writers to choose the best one or give another version to a friend. This can be done through the add-on "Same paper from another writer."
Copy of sources used by the writer
Our college essay writers work with ScienceDirect and other databases. They can send you articles or materials used in PDF or through screenshots. Just tick the "Copy of sources" field on the order form.
Testimonials
See why 20k+ students have chosen us as their sole writing assistance provider
Check out the latest reviews and opinions submitted by real customers worldwide and make an informed decision.
Management
Thank you!!! I received my order in record timing.
Customer 452551, February 9th, 2021
Education
Very fast response and did a excellent job.
Customer 453201, May 31st, 2022
Human Resources Management (HRM)
I finished the first deliverable of a project presentation but had no time to finish my second deliverable. The writer revamped my first deliverable and made it much more appealing! Not only was I impressed with the content but I was so grateful for the time they took to redo the background. I have been under a lot of pressure at work and at home so this has been a great service when I have had little time! I appreciate the detail and help! Always on time and always exceeding expectations!
Customer 453077, April 5th, 2022
Management
It's the second time I use this service and it does not let me down. Work quality is so good for its price!
Customer 452985, December 3rd, 2021
Psychology
thank you!
Customer 452947, October 21st, 2021
History
Thank you. No issues
Customer 453139, April 17th, 2022
Psychology
Came in as promissed. Good paper.
Customer 453027, January 6th, 2022
Nursing
Impressive writing
Customer 452547, February 6th, 2021
Nursing
thank you so much
Customer 452749, June 10th, 2021
Social Work and Human Services
Although it took 2 revisions I am satisfied but I did receive it late because of that.
Customer 452603, March 25th, 2021
Humanities
Thank youuuu
Customer 452729, May 30th, 2021
Human Resources Management (HRM)
My son and I have been sick for two weeks, of course at the end of my semester. I am so grateful that myhomeworkgeeks were able to help! Both papers got A's and I couldn't be more thrilled! Thank you so much and don't forget to tip your writer!
Customer 453077, February 22nd, 2022
11,595
Customer reviews in total
96%
Current satisfaction rate
3 pages
Average paper length
37%
Customers referred by a friend
OUR GIFT TO YOU
15% OFF your first order
Use a coupon FIRST15 and enjoy expert help with any task at the most affordable price.
Claim my 15% OFF Order in Chat
AllEscortAllEscort
Live ChatWhatsApp
AllEscort