Question: g . com / homework - help / questions - and - answers / exercise - 1 8 1 4 - activity - 2 -
gcomhomeworkhelpquestionsandanswersexerciseactivitymodifyingmagpiepoi
Maps
Watch Anime Onli...
Dashboard
Transition Words...
Dashboard
Home N
What's your next question?
Exercise : Activity : Modifying Magpie
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 nonc
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.
: Activ
public class
public ist
Magp
String statement scanner, nextline in i
while statement equalsBye
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
