Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
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.
We want to connect the people who have knowledge to the people who need it, to bring together people with different perspectives so they can understand each other better, and to empower everyone to share their knowledge.
1.16.5 Double Tennis Balls CodeHS Answers
//Have 5 functions 1 start function start(){ move(); putTwoBalls(); moveBack(); } function putTwoBalls(){ while(ballsPresent()){ takeBall(); putTwoMoreBallsNextAve(); } moveBallsNextDoorBack(); } function putTwoMoreBallsNextAve(){ move(); putBall(); putBall(); moveBack(); } function moveBallsNextDooRead more
1.16.4 Super Cleanup Karel CodeHS Answers
function start() { cleanRows(); } function cleanRows() { while(frontIsClear()) { if(ballsPresent()) { takeBall(); } move(); //Proceed } if(facingEast()) { turn1(); } if(facingWest()) { turn2(); } } function turn1() { turnLeft(); if(ballsPresent()) { takeBall(); } if(frontIsClear()) { move(); if(ballRead more
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(); }