subject

In this exercise, you are going to make a sample bot conversation. At this point, we don't have too much that we can do, but you are going to ask the user for their name and then use that in the constructor for the bot. After that, you are going to simulate a conversation. You will print questions to the console and answer them by calling methods from the Bot class. (You don't actually prompt the user for any information other then their name).

When you are finished, your output should match the output below (with the exception of your name).

Sample Output:

Hello. What is your name?

Kiara

Hello Kiara! My name is Hal!

How are you today!

You can ask me about the weather,

or how many feet are in a mile.

I can even convert feet to meters!

What's the weather like?

Its always warm and dry inside your computer!

How many feet in a mile?

There are 5280 feet in a mile.

It was nice talking with you!

Have a great day!

Challenge: The bot does have some additional commands included, but we haven't covered these topics yet. Can you figure out how to access some of these methods?

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 00:00
What engine component is shown in the above figure?
Answers: 1
question
Computers and Technology, 23.06.2019 06:30
How do you write an argumentative essay about the importance of free enterprise ?
Answers: 1
question
Computers and Technology, 23.06.2019 17:30
What are the most commonly found items in the trash according to the municipal solid waste report?
Answers: 1
question
Computers and Technology, 23.06.2019 18:30
List 3 items that were on kens resume that should have been excluded
Answers: 1
You know the right answer?
In this exercise, you are going to make a sample bot conversation. At this point, we don't have too...
Questions
question
History, 03.12.2019 22:31
question
Mathematics, 03.12.2019 22:31
Questions on the website: 13722361