Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 yourStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started