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 Advanced Placement (AP)

question
Advanced Placement (AP), 23.06.2019 13:20
Iwill give anyone points if they me right now q: sustainable development is related to pollution in that a. sustainable development allows pollution to continue at current levels.b. sustainable development increases pollution of all types.c. addressing pollution is a factor in sustainable development.d. sustainable development incorporates pollution as a benefit.e. pollution levels will decrease with development.
Answers: 2
question
Advanced Placement (AP), 23.06.2019 14:00
Which of the following statements is not true about regions? a.) regions have fixed boundaries that are determined by the region's inhabitants.b.) a region can be defined by physical characteristics, such as climate, landform, and vegetation.c.) regions can change over time.d.) a region can be defined by human characteristics, such as language, government, and economic activity.e.) the same location can be considered part of multiple regions.
Answers: 1
question
Advanced Placement (AP), 24.06.2019 07:00
With the use/abuse of alcohol, the heart is more efficient in the use of nutrients by the heart tissue.
Answers: 1
question
Advanced Placement (AP), 24.06.2019 11:20
Arectangle is removed from a right triangle to create the shaded region shown below. find the area of the shaded region.be sure to include the correct unit in your answer.14 mmm² mxlal? 4m3m
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
Mathematics, 25.08.2019 07:00
question
Mathematics, 25.08.2019 07:00
Questions on the website: 13722361