Khan Academy
Challenge: Number Analyzer
The JavaScript program you create will answer a simple question about a number. Is it positive, negative, or zero? Create a Boolean expression and use conditional if statements to test the value and then print the results.
Curated OER
Problem Solving in Computer Classrooms
Students discuss and implement basic problem solving techniques. They define program specifications and write programs. Students work cooperatively on programming problems and brainstorm solutions.
Khan Academy
Challenge: Your First Button
Practice using conditional if statements, Boolean expressions, and Boolean operators by programming a user-selected button. This activity guides by using a small program that needs some modifications to work correctly.
Khan Academy
Challenge: Bouncy Ball
Create your own bouncing ball program with this guided activity. Java Script code that sends a ball down the screen is provided. The task is to fix the code to make it bounce up when it hits the bottom of the screen and then down again...
Khan Academy
Challenge: Smarter Button
Now, challenge your knowledge of Boolean operators even further with this JavaScript program to create a button that changes color after being pressed. This activity is the second in a series and would made a good follow up to the first...
Curated OER
Programming and PB&J
Students use peanut butter and jelly sandwiches as a method for learning computer programming skills. In this computer programming lesson, students write a detailed, step-by-step program for how to make a peanut butter and jelly...
Code.org
Understanding Program Flow and Logic
Explore decision-making logic in programming computer games. The 10th installment of a 21-part unit teaches scholars how to apply conditional statements and Boolean expressions. They use these concepts to create a "Guess My Number" game...
Krzysztof Haft-Szatynski
Move the Turtle
Turtles are not known to be speedy movers, but have you ever tried to get them to move in a specific direction? How about getting them to move in a perfect circle? With this app, young computer programmers have to be on their toes to...
Code.org
Event-Driven Programming and Debugging
Start programming in event-driven style. Scholars learn to place buttons on the user interface and use event handlers. They also learn to recognize errors in code and debug as necessary. This is the second lesson in the series of 21.
Khan Academy
Challenge: Your First Painting App
Ever wonder how those neat painting applications work? Completing this coding activity will give you some insight. First, starting with a simple function that draws a small circle as the mouse moves around the screen, adjust the function...
Khan Academy
Project: Magic 8-Ball
Your student programmers will enjoy creating their own Magic 8-ball in this JavaScript activity. This a great opportunity to practice using if and else statements based on randomly generated numbers. What will you ask the 8-ball?
Khan Academy
Challenge: Flashy Flash Card
Create your own flash card in this JavaScript coding activity. Modify the given code so that the answer is revealed when the mouse is pressed. Provides good practice of conditional if-else statements.
SurfScore
Kodable
Prepare young scholars for life in the twenty-first century with this introduction to computer coding formatted as a fun problem solving game, this resource is a great way to develop children's sequential thinking skills.
Code.org
Digital Assistant Project
Scholars apply previously learned skills to create a functional computer program. They produce a digital assistant incorporating string commands and complex conditional logic.
Code.org
Introduction to Conditional Logic
On one condition ... explore how to use conditionals within conditionals. Scholars apply conditional statements to improve upon the app they built during a previous lesson. They also learn about nested conditionals in the 11th lesson of...
Code.org
Functions with Return Values
Young computer scientists explore how to use the return command in computer programing by playing Go Fish. They learn about functions that return values and then write a turtle driver app using the return function.
Beauty and Joy of Computing
Unsolvable and Undecidable Problems
Try as you might, some functions just cannot be computed. The lab introduces the class to the possibility of unsolvable problems. The fourth lesson in a series of seven begins with a logic problem, then progresses to looking at functions...
Curated OER
Yummy Math
Young mathematicians use bags of Skittles to help them gain practice in graphing and organizing data. They work in pairs, and after they have counted and organized their Skittles, they access a computer program which allows them to print...
Curated OER
Getting Started with Java
High schoolers explore a programming curriculum based in the Java language. They start with the basic information needed to code and run their first program. Students analyze the planning, debugging and testing points of the unit. They...
Curated OER
Variable Arrays
Twelfth graders compare and contrast variables and arrays. Using data, they enter the information into a spreadsheet and an array to compare how they appear. To end the lesson, they complete basic programs in which they use arrays.
Mathematics Vision Project
Module 6: Congruence, Construction, and Proof
Trace the links between a variety of math concepts in this far-reaching unit. Ideas that seem very different on the outset (like the distance formula and rigid transformations) come together in very natural and logical ways. This unit...
TryEngineering
Solving a Simple Maze
Solve a maze ... from a robot's point of view. In the instructional activity, your scholars build a small, simple maze from cardboard and then find a route from the start point to the finish point. They write an algorithmic process that...
Drexel University
Learning Roomba Module 4: Sensors and Actuators
Introduce your classes to sensors and actuators in robots — specifically to the Roomba. Pupils develop programs that make Roomba utilize its different sensors.
Code.org
Looping and Simulation
Young computer scientists continue programming with while loops by creating a program to simulate coins flipping.