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

Other questions on the subject: Advanced Placement (AP)

image
Advanced Placement (AP), 23.06.2019 14:40, dbenitezmontoya3
Do you want free points and brainliest? answer this correctly and i got you : ) when scanning the road, glance away from the road ahead for a. at least one second b. no more than one second c. at least two seconds d. no more than two seconds
Answers: 2
image
Advanced Placement (AP), 24.06.2019 00:30, quoia89
Which body region is lateral to the sternal region and superior to the brachial region?
Answers: 1
image
Advanced Placement (AP), 25.06.2019 01:30, caitybugking
General ways to reduce the risk of some action include
Answers: 1
image
Advanced Placement (AP), 25.06.2019 23:20, christinaS7696
You find a mysterious, dull substance on the ground and pick it up for a closer look. it is powdery, very light, and soft to the touch. the substance is most likely i. an organic mineral ii. a metallic mineral iii. a nonmetallic mineral i only ii only iii only i and ii i and iii
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 in other subjects: