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...
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...
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...
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.
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.
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...
Code.org
Looping and Simulation
Young computer scientists continue programming with while loops by creating a program to simulate coins flipping.
Code.org
While Loops
Bring your pupils in the loop with while loops. Scholars learn how to modify conditional statements to produce while loops in the 14th instructional activity of the series. They use flowcharts to understand loops and then program...
Code.org
Image Scroller with Key Events
Discover how to embed images in lists. Scholars modify an existing app to include an image scroller in the 17th lesson of the series. They learn to refactor code and remove redundancies after modifying code.