57.5k views
5 votes
CodeHS Karel - 3.4.4 go down the slide part two
*CODE FOR THAT PART PLEASE*

2 Answers

1 vote

Final answer:

To make Karel go down the slide in CodeHS, you can use the provided code snippet that includes the necessary commands to turn and move in the appropriate directions.

Step-by-step explanation:

To write the code for Karel going down the slide in CodeHS, you can use the following code:


function goDownTheSlide() {
turnRight();
move();
turnLeft();
move();
move();
turnRight();
}
User R KiranKumar
by
8.9k points
4 votes

Answer:

move();turnRight();move();}------Lots of Hurdles Karelfunction start(){for(var i = 0; i < 5; i++){runToHurdle();jumpHurdle();}}function runToHurdle(){move();move();}function jumpHurdle(){turnLeft();move();turnRight();move();turnRight();move();turnLeft();}---------For Loop Karelfunction start() {for(var i = 0; i < 4; i ++){putBall();move();turnLeft();}}-----Slip n’ slide Karel/** This program has Karel slide down a slip n slide* by moving as long as Karel is standing on a blue square

User Hemi
by
8.8k points