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 20:00
Do you want free brainliest & free 15 points? answer this correctly and you shall receive : ) the ideal body position for your legs after you've adjusted your seat is with your knee a. is fully tucked in when pressing the pedals b. is slightly crooked when pressing the pedals c. is fully extended when pressing the pedals d. is pressing directly on the pedals
Answers: 1
question
Advanced Placement (AP), 26.06.2019 08:00
The following table lists the birth rate, death rate, and net migration rate for egypt over the past 20 years. on a coordinate plane, plot the birth rate data and death rate data for egypt. clearly, show each data point and label each curve. be sure to label the graph and axes. save a copy of your graph. then answer the following questions: (14 points) a. what was the annual growth rate for egypt in 1990? what is the estimated annual growth rate in 2010? be sure to show your work for each answer. b. where does egypt most likely fall on the demographic transition model? explain your answer using data from the table. describe two changes within egyptian society that would likely be necessary for egypt to transition to the next stage in the model. c. assuming egypt’s current birth rate, death rate, and net migration rate trends continue, what will the country’s annual growth rate likely be in 2030? if this growth rate is accurate, what would its doubling time be in 2030?
Answers: 2
question
Advanced Placement (AP), 26.06.2019 14:00
Asports equipment manufacturer has pressed charges against its brand ambassador and baseball legend, glenn kent , on the charges of committing breach of contract. being a federal civil case, glenn has demanded a trial by jury. which amendment of the bill of rights allows glenn to make such a demand? a. amendment 5 b. amendment 6 c. amendment 7 d. amendment 8
Answers: 1
question
Advanced Placement (AP), 26.06.2019 19:50
30 a town is built on the banks of a small lake on the edge of a desert. after some time, the townspeople discover that water from the lake has become too polluted to use. describe one way that the lake may have been contaminated by the actions of the townspeople, and explain how the townspeople can remediate this problem.
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, 29.08.2019 21:00
Questions on the website: 13722362