Question: g . com / homework - help / questions - and - answers / exercise - 1 8 1 4 - activity - 2 -

g.com/homework-help/questions-and-answers/exercise-1814-activity-2-modifying-magpie-6-poi
Maps
Watch Anime Onli...
Dashboard
Transition Words...
Dashboard
Home - N
What's your next question?
8 Exercise 18.1.4: Activity 2: Modifying Magpie
5 points
In this exercise, you'll make some changes to Magpie. java to improve how it understands and res Exercises
Teach Magpie to ask about your pets. Any time a statement contains "dog," "cat," or "pet," h followup question, like "What do your pets eat?"
If you say something about your teacher, Magpie should say something nice about them.
Make the code check that you give it any input. You can do this by using the trim method to the beginning and end of the input, then checking the length. If there are no characters in the have Magpie say something like "Speak up," or "I can't hear you."
Add two more non-c
This problem has been solved!
You'll get a detailed solution from a subject matter expert that helps you
Import Java.u
learn core concepts.
()18.1.4: Activ
public class
public ist
{
Magp1
String statement - scanner, nextline () in) i
while ('statement. equals("Bye"))
 g.com/homework-help/questions-and-answers/exercise-1814-activity-2-modifying-magpie-6-poi Maps Watch Anime Onli... Dashboard Transition Words... Dashboard Home -

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!