Computational Thinking for K-12 Educators: Nested If Statements and Compound Conditionals (Coursera)

Computational Thinking for K-12 Educators: Nested If Statements and Compound Conditionals (Coursera)

How could you program a complex "choose your own adventure" game? How can your soccer game determine goals, balls out of bounds, and corner kicks? You'll learn to do both of these in this course! This class teaches the concepts of nested if/else statements and compound Boolean conditional expressions.

Class Deals by MOOC List - Click here and see Coursera's Active Discounts, Deals, and Promo Codes.

For each concept, we'll start by helping you connect real-world experiences you are already familiar with to the programming concept you are about to learn. Next, through a cognitively scaffolded process we'll engage you in developing your fluency with problem solving with nested if/else statements and compound conditionals in a way that keeps frustration at a minimum.
Along the way you will learn about the common challenges or "bugs" students have with these concepts as well as ways to help them find and fix those concepts. You'll also be guided in running classroom discussions to help students develop deeper understanding of these concepts.
Finally, you'll prepare classroom resources to help your students to develop debugging skills. Additionally, you will create resources to help educate your students about the impacts of lack of equity in K-12 CS instruction.
Course 4 of 6 in the Computational Thinking & Block Programming in K-12 Education Specialization.

Syllabus

WEEK 1
Course Orientation
Nested If/Else Part 1
Explore conditional executing by learning about nested if-else statements. Use nested if-elses in examples where there are three or more options. Design your own conditional system, re-create Snap programs based on video solutions, and review some common debugging tips.

WEEK 2
Nested If/Else Part 2
Continue with nested if-else statements with our non-interactive programming puzzles to check your knowledge. Get prepared to run classroom discussions on some challenging if-else statements and explore a different, free, online programming system -- pencilcode.net

WEEK 3
Compound Conditionals Part 1
Learn how to create compound conditionals with and and or. Do an unplugged activity to see compound conditional apply in a soccer game. See how truth tables define the behavior of Boolean operators and and or and get the chance to fill one in. Create your own compound conditional programs using Snap, review others' work, and learn debugging tips.

WEEK 4
Compound Conditionals Part 2
Deepen your understanding of compound conditionals with some pretty challenging classroom discussion questions. Learn about the design behind the Scratch programming language and read and use starter code in Scratch to create a soccer game that announces goals and various out of bounds situations.

WEEK 5
Equity & Pedagogy
Explore the equity and pedagogical aspects of computer science. Learn about Grace Hopper, an iconic woman and pioneer of computing and learn about debugging tips. After practicing your debugging skills, you will learn the benefits and methods to introduce computer science to everyone. Finally, we'll introduce various communities and share advice that will be useful for computing education leaders.

Go to Class
MOOC List is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Related Courses

Cultures et pédagogies (Coursera) Coursera
University of Geneva

Cultures et pédagogies (Coursera)

Dans ce cours, nous explorons des alternatives pédagogiques qui s'inscrivent dans des contextes historiques, culturels et politiques différents. Vous découvrirez des pédagogies et des pédagogues qui opèrent une rupture avec les approches pédagogiques dominantes de notre société. Nous verrons ensemble les fondements pratiques et théoriques des apports de pédagogues à portée internationale, tels que P. Freire (Brésil) ou J. Krishnamurti (Inde).

Sep 14th 2026
5-12 Weeks
Try RRI! A guide for Responsible Research and Innovation (Coursera) Coursera
University of Amsterdam

Try RRI! A guide for Responsible Research and Innovation (Coursera)

In this online course you will learn how to apply Responsible Research and Innovation (RRI) in your own work. First by understanding why it is important to act responsibly in your research and innovation processes at all. In a second step, you will get introduced to several tools that will help make your own work in research and/or innovation more aware by introducing concepts of RRI.

Sep 14th 2026
3 Weeks
Teaching Children with Visual Impairment: Creating Empowering Classrooms (Coursera) Coursera
University of Cape Town

Teaching Children with Visual Impairment: Creating Empowering Classrooms (Coursera)

In the education of children with visual impairment, there is at present a global movement away from segregated special schooling, and towards inclusive neighbourhood schools. Inclusion provides an opportunity for everyone, teachers as well as learners, to become more acquainted about life with visual impairment and to overcome some of the barriers of difference which have existed in the past. But if it is to be successful, teachers and others require key skills and insights in order to create classroom environments which fully accommodate the learning needs of children with visual impairment.

Sep 7th 2026
4 Weeks
Teaching LGBTQ+ Health (Coursera) Coursera
Stanford University

Teaching LGBTQ+ Health (Coursera)

This curriculum is designed for faculty members and health professions educators. The course goals are to improve your knowledge, teaching skills, and attitudes pertaining to the provision of health care to LGBTQ+ patients.e.g. This is primarily aimed at first- and second-year undergraduates interested in engineering or science, along with high school students and professionals with an interest in programming.

Sep 14th 2026
2 Weeks
Engaging ELLs and Their Families in the School and Community (Coursera) Coursera
Arizona State University

Engaging ELLs and Their Families in the School and Community (Coursera)

In this course, you will learn how to better and more successfully engage your ELL(s) and their families in the school and community. You will learn how to engage your ELL student in the classroom setting as well as in various aspects of the school including extracurricular activities and the inner workings of the school and education system. You will also be introduced to strategies for engaging the families of your ELL students in the school community and the wider community of your city and state.

Sep 7th 2026
5-12 Weeks
Copyright for Educators & Librarians (Coursera) Coursera
Duke University,Emory University,University of North Carolina at Chapel Hill

Copyright for Educators & Librarians (Coursera)

Fear and uncertainty about copyright law often plagues educators and sometimes prevents creative teaching. This course is a professional development opportunity designed to provide a basic introduction to US copyright law and to empower teachers and librarians at all grade levels. Course participants will discover that the law is designed to help educators and librarians.

Sep 14th 2026
5-12 Weeks
Tinkering Fundamentals: Circuits (Coursera) Coursera
Exploratorium

Tinkering Fundamentals: Circuits (Coursera)

The Tinkering Fundamentals course will offer educators and enthusiasts an opportunity to develop a practice of tinkering and making. We see tinkering as a serious endeavor -- one that is generalizable across content and especially good at interweaving disciplines in a way that leads to complex projects and individualized learning opportunities.

Sep 21st 2026
5-12 Weeks
Uncommon Sense Teaching (Coursera) Coursera
Deep Teaching Solutions

Uncommon Sense Teaching (Coursera)

Do your students spend too much (or too little) time learning, with disappointing results? Do they procrastinate in their study because it’s boring and they’re easily distracted? Are you working to make your teaching even more inclusive? Uncommon Sense Teaching will give you practical new insights that will help you solve these goals and challenges, and many more.

Sep 7th 2026
4 Weeks
Becoming a Language Friendly Teacher (Coursera) Coursera
Erasmus University Rotterdam

Becoming a Language Friendly Teacher (Coursera)

Attention teachers worldwide! Get ready to embark on an exciting journey into the world of language diversity in classrooms. As the global landscape changes, more and more children are speaking languages different from the ones used for instruction. You might have already noticed the rich tapestry of languages spoken by your students and their families, creating a wonderfully diverse environment within your school.

Sep 7th 2026
5-12 Weeks
THINK GLOBAL: TEACHERS TRAINING COURSE (IDP-ICE) (Coursera) Coursera
University of Barcelona

THINK GLOBAL: TEACHERS TRAINING COURSE (IDP-ICE) (Coursera)

A group of seven European partners from Catalonia, Belgium, and Wales worked together on the Erasmus+ funded ‘Think Global’ project on global competence. The project seeks to address the following research question through development and piloting of practical classroom activities: What is global competence, and how can it be learned effectively?

Sep 14th 2026
5-12 Weeks
Basics of Inclusive Design for Online Education (Coursera) Coursera
University of Colorado Boulder

Basics of Inclusive Design for Online Education (Coursera)

This course provides instruction and strategies to support you in developing a course that is inclusive to students with a wide range of abilities, including students with disabilities. We cover effective practices to increase inclusion and avoid some of the common accessibility issues that can arise in an online course.

Sep 14th 2026
5-12 Weeks
Making Sense of the News: News Literacy Lessons for Digital Citizens (Coursera) Coursera
University of Hong Kong,The State University of New York

Making Sense of the News: News Literacy Lessons for Digital Citizens (Coursera)

Never before has the need for News Literacy been more urgent. As news consumers are bombarded with a constant stream of fake news, propaganda, hoaxes, rumors, satire, and advertising — that often masquerade as credible journalism — it is becoming more and more difficult to distinguish fact from fiction. While the public’s faith in the news media erodes, purveyors of misinformation have helped give rise to troubling cultural trends and alarming political movements.

Sep 7th 2026
5-12 Weeks