Thursday, 30 January 2025

Code Solutions

# This program will have Karel build a tower on
# every odd avenue. A tower consists of 3 tennis balls
# stacked on top of each other.

# This function moves Karel to the wall.
def go_down():
    while front_is_clear():
        move()

# This function has Karel build a tower that is three balls high.
# Precondition: Karel is facing east at the location to build the tower.
# Postcondition: Karel has built the tower, and is back at the base
#                facing east.
def build_tower():
    turn_left()
    for i in range(3):
        put_ball()
        move()
    turn_around()
    go_down()
    turn_left()

build_tower()
while front_is_clear():
    move()
    if front_is_clear():
        move()
        build_tower()
/* Karel needs to move to the opposite 
 * corner of the world facing East. */

function main() {
    moveToWall();
    turnLeft();
    moveToWall();
    turnRight();
}

/* This function moves Karel to the end 
 * of the row.
 */
function moveToWall() {
    while (frontIsClear()) {
        move();
    }
}

main();

Thursday, 23 January 2025

Welcome to Programming 11/12/AP

Lab Expectations:
  • No food or drinks in the computer lab!!!! 
  • Attend all classes. If you are absent, it is your responsibility to make up the work (not mine). 
  • Complete all of the assignments to the best of your ability. You will not succeed in this class if you don’t do the work. 
  • Be prepared in your seat, when the second bell goes 
  • Only one person talks at a time. This includes any/all announcements. Do not be typing on the keyboard or playing with your mouse also falls under this category. 
  • Leave your area as you found it. Push in your chair, log out of the computer , the equipment should be in the condition you found it. 
  • CLOSE THE CLASSROOM DOOR!!!
  • Do not live on your cellular phone, if I notice it, I will take it away.  

Programming 11 - Coding

Programming JavaScript at CodeHS.com  Go to Link  
Class code is 94CDF

Programming using Python at CodeHS.com  Go to Link 
Class code is 5CB8F

If you're new and need not sure of your capabilities start with:
Programming using Karel at CodeHS.com  Go to Link
Class code is 22441

Once you've finished that, you can go onto any of the ones listed below.


Programming 12:  You can pick any of the listed above or any of the following:

Computer Science in Python using Python 

Python Advanced

Programming using HTML CSS and Bootstrap (Web Design)  


Students learn the basics of object-oriented programming with a focus on problem-solving and algorithm development.