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 19:30
Explain the popular saying "we are made of stardust. how are we made of stardust? use scientific vocab.
Answers: 1
question
Advanced Placement (AP), 23.06.2019 23:30
All of the following physical reactions occur when our fight-or-flight response is triggered  except  a.dilating pupilsb.increasing heartbeatc.increasing digestiond.increasing perspiration  select the best answer from the choices providedabcd
Answers: 2
question
Advanced Placement (AP), 24.06.2019 00:30
Which body region is lateral to the sternal region and superior to the brachial region?
Answers: 1
question
Advanced Placement (AP), 24.06.2019 21:00
You are a psychologist who has been asked to write a brief report about the possible causes of anxiety (nervousness, fears, in your report, write up a summary that explains and examines anxiety according to each of the psychological perspectives: psychoanalytic behavioral cognitive humanistic biological sociocultural
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, 28.08.2019 04:30
question
World Languages, 28.08.2019 04:30