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, 22.06.2019 11:30
One subtask in the game is to roll the dice. explain why is roll the dice an abstraction.
Answers: 3
question
Computers and Technology, 22.06.2019 19:30
When creating a presentation in libre office impress, where does the editing of slides take place? a. the slides panel b. the center panel c. the tasks panel, under the masters pages tab d. the tasks panel, under the layouts tab
Answers: 3
question
Computers and Technology, 23.06.2019 01:30
How do you set up a slide show to play continuously, advancing through all the slides without requiring your interaction? a. click set up slide show, and then select the loop continuously until β€˜esc' and show without narration options. b. click set up slide show, and then select the loop continuously until β€˜esc' and use timings, if present options. c. click set up slide show, and then select the show presenter view and use timings, if present options. d. click set up slide show, and then select the show without animation and browsed at a kiosk (full screen) options.
Answers: 3
question
Computers and Technology, 23.06.2019 07:30
Write a program that inserts the digits of an integer into an array in originalorderfollowed by reverse order. first, promptthe user to enter a positive integer(> 0). determine the number of digits of the integer. create a dynamically allocated integer arrayof a size twice the number of digits.now insert the digits in original order which will occupy half of the array. then, insert the digits in reverse order.finally, output thedigits in thearray.use at least two functions to organize your program.
Answers: 3
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
Mathematics, 22.04.2020 18:21
question
Mathematics, 22.04.2020 18:21
question
French, 22.04.2020 18:21
question
Mathematics, 22.04.2020 18:21
question
Health, 22.04.2020 18:21
question
English, 22.04.2020 18:21
question
Mathematics, 22.04.2020 18:21
Questions on the website: 13722361