Thursday, 10 September 2026

Code Solutions

//Sample solution:

function main() {
    let isHappy = true;
    let isPumped = true;
    let isSad = false;
    
    if (isHappy) {
        playHappy();
    }
    
    if (isSad) {
        playHello();
    }
    
    if (isPumped) {
        playEyeOfTheTiger();
    }
}

function playEyeOfTheTiger() {
    console.log("It's the eye of the tiger");
    console.log("It's the thrill of the fight");
    console.log("Rising up to the challenge of our rival");
    console.log();
}

function playHappy() {
    console.log("Because I'm happy");
    console.log("Clap along if you feel like a room without a roof");
    console.log("Because I'm happy");
    console.log("Clap along if you feel like happiness is the truth.");
    console.log();

}

function playHello() {
    console.log("Hello from the other side");
    console.log("I must have called a thousand times");
    console.log("To tell you I'm sorry for everything that I've done");
    console.log("But when I call you never seem to be home");
    console.log();
}

main();

Wednesday, 9 September 2026

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 DF5BB

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

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 3549F

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