Question: Can you help me? For this question you writing code for named erin. Change the if statement to a while loop so that erin will
Can you help me?



For this question you writing code for named erin. Change the if statement to a while loop so that erin will continue turning left until erin is either facing north or facing a flower ahead. Remember that the while loop condition says when the action should continue to repeat, so it is the opposite of the condition when the loop should stop. Your Answer: Feedback Your feedback will appear here when you check your answer. For this question you will write a method that takes a jeroo named paige. Write an if statement to handle the following logic. If paige already has a flower, she does nothing. If she doesn't have a flower and can see a flower directly ahead, then hop and pick the flower. Otherwise, if she doesn't have a flower and can see a flower to the left, then turn, hop, and pick the flower. If none of the above apply, paige should do nothing. Your Answer: Feedback Your answer could not be processed because it contains errors: For this question you will write a method that takes a jeroo named ken. Write an if statement to handle the following logic: If ken has a flower and can see a flower ahead, make ken turn to the left and hop three times. Otherwise, make ken hop five times. Your Answer: Feedback Your feedback will appear here when you check your
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
