Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
1.16.3 Tower Builder CodeHS Answers
function start() { buildTower(); buildTower2(); // Write your code here } function buildTower() { move(); turnLeft(); putBall(); move(); putBall(); move(); putBall(); turnLeft(); turnLeft(); move(); move(); turnLeft(); } function buildTower2() { move(); move(); turnLeft(); putBall(); move(); putBallRead more
1.16.2 Racing Karel CodeHS Answers
function start() //Thanks, Captain Obvious { for(var i = 0; i < 8; i++) { runLap(); } } function run() //Running in a single line { while(frontIsClear()) { move(); } putBall(); turnLeft(); } function runLap() //Running a lap { run(); run(); run(); run(); }
1.16.1 Fetch CodeHS Answers
function start() { goUp(); goDown(); } function goUp() //Going up { move(); turnLeft(); move(); move(); move(); move(); turnRight(); move(); takeBall(); } function goDown() //Going down { turnLeft(); turnLeft(); move(); move(); turnLeft(); move(); move(); move(); move(); turnLeft(); putBall(); }
1.15.5 Staircase CodeHS Answers
/* This program creates a staircase from the first spot all the way across the world for any sized world. * This program works, but its indentation is completely wrong. Run the program first, so you know what it does and don’t break it. */ function start(){ putBall(); while(frontIsClear()){ turnLeftRead more
1.15.4 Diagonal CodeHS Answers
/* This program has karel lay a diagonal row of tennis balls. However, the indenting is all wrong. Can you properly indent this program? */ function start(){ while(frontIsClear()){ putBall(); move(); turnLeft(); move(); for(var i = 0; i < 3; i++){ turnLeft(); } } putBall(); }
1.13.4 Random Hurdles CodeHS Answers
function start() { for(var i = 0; i < 13; i++) { if(frontIsClear()) { move(); } else { jumpHurdle(); } } } function jumpHurdle() { turnLeft(); move(); turnRight(); move(); turnRight(); move(); turnLeft(); }
1.12.6 Big Tower CodeHS Answers
/* This program draws a big tower from Karel’s starting spot */ function start() { faceNorth(); placeBalls(); } function placeBalls() { while(noBallsPresent()) { putBall(); if(frontIsClear()) { move(); } } } function faceNorth() { while(notFacingNorth()) { turnLeft(); } }