Question: In this Java program, you are going to create a static, toy chatbot in Java. Assume your chatbot is responsible to direct the customer to

In this Java program, you are going to create a static, toy chatbot in Java. Assume your chatbot is responsible to direct the customer to a proper unit. After printing a greeting message, it should collect some information about the user and then print an appropriate message.

For example, the conversation between the chatbot and the user (your output) should look like the following:

Chatbot: Hello, my name is ChatX. May I have your first name?

User: David

Chatbot: And your last name?

User: Carry Chatbot: OK, David, how old are you?

User: I am 32. (User should input a sentence, not just a number!)

Chatbot: 32. OK, thanks David. Are you married or single?

User: Single.

Chatbot: What is your education David?

User: Master.

Chatbot: Could you please confirm the following information?

Name Username Initials Age Marital Status Education David Carry dary32 DC 32 Single Master

Name Initials Age Marital status Education
David Carry DC 32 Single Master

User: Correct. Chatbot: Perfect. Now, I will direct you to Emily

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!