Lesson Planet
Search educational resources
  • Sign In Try It Free
  • AI Teacher Tools
    • Discover Resources Search reviewed educational resources by keyword, subject, grade, type, and more
    • Curriculum Manager (My Content) Manage saved and uploaded resources and folders To Access the Curriculum Manager Sign In or Join Now
    • Browse Resource Directory Browse educational resources by subject and topic
    • Curriculum Calendar Explore curriculum resources by date
    • Lesson Planning Articles Timely and inspiring teaching ideas that you can apply in your classroom
    • Our Story
    • Frequently Asked Questions
    • Testimonials
    • Contact Us
  • Pricing
  • School Access
    • Your school or district can sign up for Lesson Planet — with no cost to teachers
      Learn More
  • Sign In
  • Try It Free

Hi, what do you want to do?

Create a lesson plan
Create a lesson plan
Generate resources with 80+ AI teacher tools
Generate resources with 80+ AI teacher tools
Search 200,000 instructional videos
Search 200,000 instructional videos
Find a teaching resource
Find a teaching resource
Understanding Program Flow and Logic Lesson Plan
Publisher
Code.org
Resource Details
Curator Rating
Educator Rating
Not yet Rated
Grade
9th - 12th
Subjects
STEM
1 more...
Resource Type
Lesson Plans
Audience
For Teacher Use
Duration
1 hr
Instructional Strategies
Collaborative Learning
4 more...
Technology
Video
Internet Access
Usage Permissions
Creative Commons
BY-NC-SA: 4.0
cc
Lesson Plan

Understanding Program Flow and Logic

Curated and Reviewed by Lesson Planet
This Understanding Program Flow and Logic lesson plan also includes:
  • Code Studio Stage
  • Join to access all included materials

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 and a Dice activity.

14 Views 11 Downloads

Concepts

computer code, computer applications, javascript, logic, conditional statements, technology resources

Instructional Ideas

  • Have learners create a graphic organizer comparing questions that humans and computers can both understand

Classroom Considerations

  • Free account necessary for Code Studio portion of lesson
  • Learners should have knowledge of if statements from previous lessons

Pros

  • Venn diagrams and flowcharts promote understanding
  • Lesson plan is well-organized and easy to navigate

Cons

  • Inconsistency in unit and lesson numbers may cause confusion

See similar resources:

Instructional Video

A Tour of Programming on Khan Academy

Khan Academy
Explore, create, and make mistakes. This is the call to action in a video on how to use Khan Academy to learn to write Java code. The speaker encourages learners to feel comfortable with the programming environment that is provided on...
6 mins 5th - Higher Ed STEM
Instructional Video

More Mouse Interaction, Computer Programming

Khan Academy
Creating interactive programs can be very exciting for new computer programmers. The author shows how to use mouseIsPressed within a conditional statement to create a small JavaScript program that responds to the user's mouse press.
4 mins 6th - Higher Ed STEM
Instructional Video

If Statements, Computer Programming

Khan Academy
This video continues the Khan Academy tutorials and activities on writing code in JavaScript. Here, we are introduced to the conditional if statement. The result is a cute program that produces a bouncing ball. Your young programmers...
4 mins 6th - Higher Ed STEM
Instructional Video

If/Else - Part 2, Computer Programming

Khan Academy
This is the second part of the introductory video on the if statement. It looks specifically at the else if clause in JavaScript code. Two examples are shown: one where the options are mutually exclusive and could have been programmed...
6 mins 6th - Higher Ed STEM
Instructional Video

If/Else - Part 1, Computer Programming

Khan Academy
Do it, or else! In conversation, this sounds like an ultimatum, but when writing code, it's a normal way to communicate with a computer. This video shows how to extend our previously used conditional if statement to include the else...
5 mins 6th - Higher Ed STEM
Instructional Video

Terrific Text: Part Two

Khan Academy
Start being creative with your JavaScript text. The speaker defines a string and how to combine strings. The program modeled here displays the text, and using the mouseX and mouseY functions, the text grows as it moves. Your beginning...
4 mins 6th - Higher Ed STEM
Instructional Video

Modifying Arrays, Computer Programming

Khan Academy
An instructional video combines arrays, loops, and mouse clicks. The author shows how to modify JavaScript code to add a balloon each time the mouse is clicked. The video also shows two different ways to add to the end of the array: one...
6 mins 6th - Higher Ed STEM
Instructional Video

Arrays of Objects, Intro to JS: Drawing & Animation, Computer Programming

Khan Academy
Expand your beginning coder's use of objects in programs by looking at examples where you can change code to define and use objects in arrays and pass objects as parameters to a function. All of this leads to a deeper understanding of...
6 mins 6th - Higher Ed STEM
Instructional Video

Intro to Objects, Computer Programming

Khan Academy
When you introduce objects and object-oriented programming to your coding students, you are starting them on an important path. This introductory video shows how to replace the use of many variables with the use of a single object...
5 mins 6th - Higher Ed STEM
Interactive

Challenge: Number Analyzer

Khan Academy
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...
6th - Higher Ed STEM
Try It Free
© 1999-2026 Learning Explorer, Inc.
Teacher Lesson Plans, Worksheets and Resources

Sign up for the Lesson Planet Monthly Newsletter

Open Educational Resources (OER)

  • Health
  • Language Arts
  • Languages
  • Math
  • Physical Education
  • Science
  • Social Studies
  • Special Education
  • Visual and Performing Arts
View All Lesson Plans

Discover Resources

  • Our Review Process
  • How it Works
  • How to Search
  • Create a Collection

Manage Curriculum

  • Edit a Collection
  • Assign to Students
  • Manage My Content
Contact Us Site Map Privacy Policy Terms of Use