TPT
Total:
$0.00

For Loop Java

190+ results
Filters
Standard
Language
Preview of Algorithms STEM | Create Step-by-Step Solutions Like a Programmer For K - 9Th

Algorithms STEM | Create Step-by-Step Solutions Like a Programmer For K - 9Th

Created by
Think Tank STEM
🧠 Algorithms STEM | Create Step-by-Step Solutions Like a Programmer (Kindergarten–Grade 2)Help students think like problem-solvers with this engaging Algorithms STEM activity! This hands-on resource introduces how computers solve problems using clear, ordered steps—called algorithms. Students are guided to design, test, and improve their own step-by-step solutions, as outlined in the challenge on page 2, where they learn that computers follow algorithms to solve real-world problems. ⭐ Wha
Preview of Coding Logic STEM | Think Like a Programmer | Technology Units For K - 9Th

Coding Logic STEM | Think Like a Programmer | Technology Units For K - 9Th

Created by
Think Tank STEM
💻 Coding Logic STEM | Think Like a Programmer (Kindergarten–Grade 2)Introduce students to the world of coding with this engaging Coding Logic STEM activity! This hands-on resource helps learners understand how computers follow instructions step by step while building essential problem-solving and logical thinking skills. Students are challenged to create, test, and improve their own step-by-step instructions (algorithms), as outlined on page 2, where they learn that computers follow clear i
Preview of Unit 3 - Spike Prime: Read the Code (Advanced) – WS 4: Partial Infinite Loops

Unit 3 - Spike Prime: Read the Code (Advanced) – WS 4: Partial Infinite Loops

Created by
RoboBytes
Students can’t tell the difference between “running” and “responsive.”This worksheet makes that distinction unmistakable. Students examine programs with infinite loops that appear active but trap the robot in limited behavior. They predict long-term behavior, test their predictions, and explain why the robot becomes stuck even though the code is still running. The questions surface logical dead ends that students often miss. This worksheet saves you time because: students stop assuming loops au
Preview of Unit 2 - SPIKE Prime: Read the Code (Inter) - WS# 5 Infinite Loops and Logic

Unit 2 - SPIKE Prime: Read the Code (Inter) - WS# 5 Infinite Loops and Logic

Created by
RoboBytes
Just because code runs forever doesn’t mean it’s doing anything useful.This worksheet teaches that lesson clearly and early. Students examine programs with infinite loops — including one where a sensor is checked repeatedly but behavior never changes. They predict long-term behavior, test their predictions, and explain why some loops are ineffective. The questions are designed to build a debugging mindset before students reach Advanced robotics. This worksheet saves you time because: ineffecti
Preview of Unit 2 - SPIKE Prime: Read the Code (Inter) - WS# 4 Two Outcomes Inside a Loop

Unit 2 - SPIKE Prime: Read the Code (Inter) - WS# 4 Two Outcomes Inside a Loop

Created by
RoboBytes
Your students don’t understand why the robot won’t change behavior.This worksheet makes that visible without you re-explaining it. Students analyze if/else logic placed inside and outside of a loop. They predict behavior, test their predictions, and explain why repeated decisions allow robots to respond — while single decisions do not. Carefully structured questions help students articulate why robots sometimes feel “stuck,” even when the code looks correct. This worksheet saves you time becau
Preview of Unit 2 -SPIKE Prime: Read the Code (Inter) - WS #2: Repeat Sensor Checks W/ Loop

Unit 2 -SPIKE Prime: Read the Code (Inter) - WS #2: Repeat Sensor Checks W/ Loop

Created by
RoboBytes
Your robots work sometimes — and students don’t know why.This worksheet fixes that confusion for you. Students analyze two programs that use the same color sensor but behave very differently. By reading the code first, students predict what will happen, test their predictions, and explain why repeated sensor checks inside a loop lead to more reliable behavior. Thought-provoking questions guide students to discover that inconsistent behavior is usually caused by program structure, not broken s
Preview of 25x: Introduction to Robotics - Loops and Repetition (8)

25x: Introduction to Robotics - Loops and Repetition (8)

Created by
3andB
25x: Introduction to Robotics Lesson Title: Loops and Repetition CSTA 2-AP-12This student-friendly lesson introduces the world of robotics by exploring what defines a robot, where they're used, and how they impact our daily lives. Perfect for STEM, engineering, or CTE classrooms. Each single-lesson download includes: Core reading (engaging, age-appropriate)Guided notes and key vocabularyReflection questions and real-world hypotheticalsReview activities (crossword + word search)Hands-on robotics
Preview of Unit 1 SPIKE Prime: Read the Code #5 – One-Time vs Forever Motion (Adv Beginner)

Unit 1 SPIKE Prime: Read the Code #5 – One-Time vs Forever Motion (Adv Beginner)

Created by
RoboBytes
Challenge students to understand infinite loops and program flow with this advanced beginner worksheet. Students will reason about code that never ends and what blocks can or cannot run in SPIKE Prime. This resource is also included in the LEGO SPIKE Prime Robotics Unit: Intro to Coding, Movement & Robot Logic (9 Lessons / 2 Weeks). Students will: Compare one-time vs forever loops Understand why blocks after a forever loop are impossible Predict robot behavior and reason about program structu
Preview of Unit 1 SPIKE Prime: Read the Code #3 – Repeats & Accumulated Movement (Beginner)

Unit 1 SPIKE Prime: Read the Code #3 – Repeats & Accumulated Movement (Beginner)

Created by
RoboBytes
Introduce students to the power of loops in SPIKE Prime with this beginner worksheet. Students analyze repeat blocks and predict robot movement over multiple iterations. This resource is also included in the LEGO SPIKE Prime Robotics Unit: Intro to Coding, Movement & Robot Logic (9 Lessons / 2 Weeks). Students will: Understand repeat loops and accumulated distance Predict repeated straight or curved movement Draw robot paths and reasoning for each iteration Includes teacher notes and answer g
Preview of Hands-On SPIKE Prime Sensor Debugging Lab – Ready to Use!

Hands-On SPIKE Prime Sensor Debugging Lab – Ready to Use!

Created by
RoboBytes
Give your students a real-world LEGO SPIKE Prime robotics challenge with this hands-on Sensor Debugging Lab! Designed for middle school STEM and coding classes, students learn how to debug, test, and fix code while building confidence in programming logic, loops, and sensor reasoning. This lab includes four practical scenarios: Color Sensor (Reflected Light) – Understand how sensor placement and thresholds affect robot behavior Distance Sensor (Approaching) – Learn how logic and measureme
Preview of SPIKE Prime Robotics Unit 5 Lesson 3: Obstacle Avoidance Lab

SPIKE Prime Robotics Unit 5 Lesson 3: Obstacle Avoidance Lab

Created by
RoboBytes
Classic challenge, real engineering. Students build and code a robot that detects and avoids obstacles autonomously using a distance sensor and a Forever loop. What's included: Editable student worksheet · Teacher answer key & facilitation notes ⭐ This lesson is part of the SPIKE Prime Unit 5 Bundle — Multi-Sensor Logic, Variables & Autonomous Systems. Grab the bundle and save! If this resource worked for your class, please leave a review — it helps other teachers find it and earns you credits
Preview of Unit 3 - Spike Prime: Read the Code – (Advanced) WS 1: Competing Conditions

Unit 3 - Spike Prime: Read the Code – (Advanced) WS 1: Competing Conditions

Created by
RoboBytes
Your students think multiple “if” statements all matter equally.This worksheet shows them why that’s not true — without you having to lecture. Students analyze code with competing conditions inside a loop. They predict what the robot will do, test their predictions, and explain which condition actually wins and why. Carefully written questions guide students to notice order-of-operations issues that cause unexpected behavior. This worksheet saves you time because: students stop assuming “all c
Preview of Unit 2 - SPIKE Prime Touch Sensor Coding – Bump Bot Lesson

Unit 2 - SPIKE Prime Touch Sensor Coding – Bump Bot Lesson

Created by
RoboBytes
Help students move from movement-only coding to true sensor-based robotics control. This hands-on Touch Sensor Coding Activity (Bump Bot) teaches students how to program a robot that responds to real-time input using the SPIKE Prime touch sensor. Students learn how to:• Set movement motors correctly • Use a Forever loop to continuously check a sensor • Write conditional logic using If/Else blocks • Understand state-based behavior (pressed vs released) • Modify steering and rotation values for t
Preview of Unit 2 - SPIKE Prime: Read the Code (Inter) - WS# 3 Repeat Actions

Unit 2 - SPIKE Prime: Read the Code (Inter) - WS# 3 Repeat Actions

Created by
RoboBytes
Students use repeat blocks — but don’t always understand them.This worksheet clears that up before it becomes a problem. Students read code that uses repeat and repeat-forever blocks to control movement. They predict distance and stopping behavior, test their predictions, and explain how repeated actions affect movement, all without adding sensor complexity. Questions are designed to surface and correct common misunderstandings about loops — especially “repeat forever.” This worksheet saves yo
Preview of SPIKE Prime Robotics Unit 5 Lesson 2: Flowcharts

SPIKE Prime Robotics Unit 5 Lesson 2: Flowcharts

Created by
RoboBytes
Stop letting students jump straight into coding without a plan. This LEGO SPIKE Prime flowchart lesson teaches students how to organize autonomous robot logic before they build. Students learn how Forever loops, sensor checks, and decision blocks work together inside a clear system structure — reducing confusion, debugging time, and priority mistakes during autonomous challenges. Instead of guessing why their robot is misbehaving, students visually map what happens first, what repeats, and how e
Preview of Unit 3 -Spike Prime: Read the Code – (Advanced) WS 2: Sensor Priority & Override

Unit 3 -Spike Prime: Read the Code – (Advanced) WS 2: Sensor Priority & Override

Created by
RoboBytes
Students don’t understand why some sensors seem to “do nothing.”This worksheet explains that problem clearly. Students examine programs where multiple sensors are checked, but some conditions never meaningfully trigger. They predict behavior, test their predictions, and explain how sensor priority and logic masking affect outcomes. The worksheet leads students to discover that the issue isn’t the sensor — it’s the code structure. This worksheet saves you time because: students stop blaming har
Preview of Unit 1 - SPIKE Prime: Read the Code #4 – Wait Blocks & Timing (Beginner)

Unit 1 - SPIKE Prime: Read the Code #4 – Wait Blocks & Timing (Beginner)

Created by
RoboBytes
Teach students that not all code makes the robot move with this worksheet focused on wait blocks. Students will predict program flow, recognize pauses, and reason about timing in SPIKE Prime programs. This resource is also included in the LEGO SPIKE Prime Robotics Unit: Intro to Coding, Movement & Robot Logic (9 Lessons / 2 Weeks). Students will: Identify movement vs non-movement blocks Predict robot behavior during waits Draw paths and mark where the robot pauses Includes teacher notes and a
Preview of Human Robot Instruction Game STEM | Learn Coding Through Step-by-Step For K-3rd

Human Robot Instruction Game STEM | Learn Coding Through Step-by-Step For K-3rd

Created by
Think Tank STEM
🤖 Human Robot Instruction Game STEM | Learn Coding Through Step-by-Step Instructions (K–3)Introduce young learners to the exciting world of coding and algorithms with this interactive Human Robot Instruction Game STEM activity! Students discover how computers and robots follow precise instructions while practicing sequencing, debugging, problem-solving, and communication through fun hands-on challenges. This engaging resource guides students to write, test, debug, improve, and organize instr
Preview of AI vs Human Decision STEM | Compare How Humans and AI Make Decisions For K - 9Th

AI vs Human Decision STEM | Compare How Humans and AI Make Decisions For K - 9Th

Created by
Think Tank STEM
🤖🧠 AI vs Human Decision STEM | Compare How Humans and AI Make Decisions (Kindergarten–Grade 2) Introduce students to the world of technology and thinking with this engaging AI vs Human Decision STEM activity! Learners explore how humans and artificial intelligence make decisions in different ways through hands-on comparison and real-life scenarios. This resource guides students to explore, compare, and test decision-making processes, as outlined in the challenge on page 2, where they inves
Preview of Encryption STEM | Create and Crack Secret Codes | Technology Units For K - 9Th

Encryption STEM | Create and Crack Secret Codes | Technology Units For K - 9Th

Created by
Think Tank STEM
Encryption STEM | Create and Crack Secret Codes (Kindergarten–Grade 2)Introduce students to the exciting world of cybersecurity with this hands-on Encryption STEM activity! Learners explore how information can be turned into secret codes and why protecting data is important in a digital world. Students are guided to encode and decode messages using different methods, as outlined in the challenge on page 2, where they learn that encryption is used to keep information safe. ⭐ What Makes Thi
Preview of Game Design STEM | Create Your Own Game | Design Thinking Units For K - 9Th

Game Design STEM | Create Your Own Game | Design Thinking Units For K - 9Th

Created by
Think Tank STEM
🎮 Game Design STEM | Create Your Own Game (Kindergarten–Grade 2)Turn creativity into innovation with this exciting Game Design STEM activity! Students explore how games are created while designing their own playable game with rules, goals, and challenges. This resource guides learners to plan, build, test, and improve their own game, as outlined in the challenge on page 2, where they learn that games are built with structure and clear design elements. ⭐ What Makes This Resource Special:✔
Preview of Binary Code Decoding STEM | Learn How Computers Read Information For K - 9Th

Binary Code Decoding STEM | Learn How Computers Read Information For K - 9Th

Created by
Think Tank STEM
💻 Binary Code Decoding STEM | Learn How Computers Read Information (Kindergarten–Grade 2)Introduce students to the basics of computer science with this engaging Binary Code Decoding STEM activity! This hands-on resource helps learners understand how computers use simple codes made of 0s and 1s to store and communicate information. Students are guided to decode messages and create their own binary codes, as outlined in the challenge on page 2, making abstract technology concepts fun and acce
Preview of AI Literacy for Kids| IB PYP Aligned | Critical Thinking & Prompt Engineering

AI Literacy for Kids| IB PYP Aligned | Critical Thinking & Prompt Engineering

Created by
Tiny tale press
Empower your students to lead the future—not just follow it.In a world where AI is everywhere, teaching "how to use" isn't enough. We must teach children how to think. This 20-page Comprehensive AI Literacy Toolkit is designed specifically for students aged 7-9. It shifts the focus from passive consumption to active inquiry, critical thinking, and ethical decision-making. Aligned with the IB PYP framework, these worksheets help students develop essential Approaches to Learning (ATL) skills
Preview of Robotics Coloring Pages for K-3 STEM Vocabulary and Early Finishers

Robotics Coloring Pages for K-3 STEM Vocabulary and Early Finishers

Robotics Vocabulary Coloring gives K-3 students a simple, engaging way to connect early STEM words with friendly robot-themed visuals. These robotics coloring pages help teachers fill centers, early finisher time, review, or sub plans while building basic robot vocabulary in an age-appropriate way. What's included• Robot • Sensor • Motor • Controller • Code • Engineer How teachers can use itUse these robotics coloring pages to support K-3 science lessons, STEM centers, early finishers, small gro
Showing 1-24 of 190+ results