Skip to main content
Senior Programming Robots Badge Activity | Girl Scouts
Home Home Home
Home Home Home
Search Search
  • SHOP
  • DONATE
  • myGS myGS myGS
  • Find a Council Find a Council Find a Council
  • Español Español Español
  • Search Search
  • Discover Discover

    About Us About Us

    • What Girl Scouts Do What Girl Scouts Do
    • The Family Experience The Family Experience
    • Girl Scout History Girl Scout History
    • Research and Data Research and Data
    • Diversity, Equity, and Inclusion Diversity, Equity, & Inclusion
    • test test
    • 7th item 7th item

    Activity Zone Activity Zone

    • Explore Girl Scouts Explore Girl Scouts
    • Grade Levels Grade Levels
    • National Service Projects National Service Projects
    • Virtual Events Calendar Virtual Events Calendar

    Our Stories Our Stories

    • Girl Scout Stories Girl Scout Stories
    • Alum Stories Alum Stories

    Discover Girl Scouts. Learn what Girl Scouts do; about our history, research and data; and about family involvement, or try Girl Scout activities!

  • Get Involved Get Involved

    Become a Girl Scout Become a Girl Scout

    • Join a Troop Join a Troop
    • Find Events Find Events

    Become a Volunteer Become a Volunteer

    • Start a Troop Start a Troop

    Alums Alums

    • Campfire Chats Campfire Chats
    • Beyond Ambassadors Beyond Ambassadors
    • Campus Girl Scouts Campus Girl Scouts
    • The Girl Scout Network The Girl Scout Network
    • Noteworthy Alums Noteworthy Alums

    Learn how to get involved with Girl Scouts. Join a troop, find events, become a volunteer, or discover alum opportunities.

  • Cookies Cookies

    Buy Girl Scout Cookies Buy Girl Scout Cookies

    • Frequently Asked Questions FAQs

    Girl Scout Cookie Flavors Girl Scout Cookie Flavors

    • NEW! Raspberry Rally NEW! Raspberry Rally

    About Girl Scout Cookies About Girl Scout Cookies

    • Cookie History Cookie History

    Find out how to buy Girl Scout Cookies, explore Girl Scout Cookie flavors, see how girls learn essential life skills, and more.

  • Support Us Support Us

    Donate Now Donate

    • Individual Giving Individual Giving
    • National Trefoil Society National Trefoil Society
    • Lifetime Membership Lifetime Membership
    • Our Partners Our Partners
    • Planned Giving Planned Giving

    Advocacy Advocacy

    • Girl Scout Advocacy Center Girl Scout Advocacy Center
    • Policy Agenda Policy Agenda
    • Gold Award Recognition Gold Award Recognition
    • Fair Play, Equal Pay Fair Play, Equal Pay

    Support Girl Scouts by donating nationally or to your local council, becoming a lifetime member, and advocating for girls.

  • Members Members

    For Girl Scouts For Girl Scouts

    • Badges, Journeys, & Awards Badges, Journeys, & Awards
    • Ways to Participate Ways to Participate
    • For Cookie Sellers For Cookie Sellers
    • Uniforms Uniforms
    • Renew Your Membership Renew Your Membership

    For Volunteers For Volunteers

    • Tips for Troop Leaders Tips for Troop Leaders
    • Volunteer Cookie Resources Volunteer Cookie Resources
    • Traditions & Ceremonies Traditions & Ceremonies
    • Virtual Meeting Planning Virtual Meeting Planning
    • Renew Your Membership Renew Your Membership

    For Parents & Families For Parents & Families

    • Raising Awesome Girls Raising Awesome Girls
    • Family Connection Family Connection
    • Cookie Entrepreneur Family Pin Cookie Entrepreneur Family Pin

    Resources for Girl Scout members. Find volunteer, Girl Scout, and family tools and support. Explore badges, activities, and more.

  • SHOP
  • DONATE
  • myGS myGS myGS
  • Find a Council Find a Council Find a Council
  • Español Español Español
  • Search Search

Council Finder

Use this finder to connect with your local Girl Scout council. (Home Page)

By ZIP Code 2

By State 2

By Council 2

close
You are leaving uat.girlscouts.org for a website operated by an external party. You will be subject to the privacy and security policies of that website.
  1. Activities for Girls
  2. Seniors
  3. Senior Programming Robots Badge Activity

Seniors

toggle arrow
  • Daisies
  • Brownies
  • Juniors
  • Cadettes
  • Seniors
  • Ambassadors
  • All Levels and Ages

STEM

Senior Programming Robots Badge Activity

Help a Robot Make a Sandwich

Write a computer program that tells a robot how to complete a (silly) task.

Activity Details

Time needed: 60 minutes

Materials needed:

  • Create an Algorithm Flowchart handout 
  • Sample Algorithm Flowcharts for your reference 
  • Writing Pseudocode handout 
  • A few sheets of blank paper
  • Pen or pencil 

Setup:

A computer program is a type of algorithm—a set of step-by-step instructions. The list of steps for telling the robot how to complete a task is an algorithm. Recipes and driving directions are algorithms too!  

Computer programs are written in code, a language that can be understood by machines. Programs use commands to tell the machine what to do. A command is one step in a program.  

Activity:

You’ve been challenged to write a program a robot can follow to perform a task!  

Part 1: Write a paper program. (10 minutes)

First, choose a task you want a robot to help with. For example: 

  • Climb a tree
  • Pitch a tent
  • Build a campfire
  • Make s’mores or another snack
  • Change a flat tire on a car or bicycle 
  • Pack up a fragile gift item to send across the country 
  • Feed or groom a dog or another pet 
  • Paint a room 
  •  Pick a movie to see, based on movies or shows you’ve watched

Then, write down the list of steps to complete the task. This is your paper program!  

Test your program by following the commands in your program, line by line, and acting out what you read. As you test your program, take notes about any problems you find so you can go back and fix them.  

Want more challenge? Try this! 

As you design the program for your robot, answer these questions:  

  • What does your robot do?  
  • What does it look like?  
  • How is it powered? 
  • How does it move? 
  •  What sensors does it use? 
  •  How is it controlled? 

Part 2: Create a flowchart. (20 minutes)

A flowchart is a diagram that represents an algorithm in the form of a map. Each step on a flowchart is represented by a different shaped box, connected by arrows.  

For the next part of the activity, write your paper program from part 1 in the form of a flowchart. Use the symbols and instructions on the Create an Algorithm Flowchart handout to structure your flowchart.

If you need help, check out the Sample Algorithm Flowcharts to see how a flowchart works and get ideas to create your own. 

When you finish your flowchart, act out the steps to see if the program works. If there’s a "bug" in the program, try to fix it!

Part 3: Write a program for a robot. (30 minutes)

When programming with a computer language, it’s important to get the syntax exactly right. Syntax  is the set of rules used by a language. It includes spelling, spacing, symbols, and punctuation.  

To plan out a program without worrying about syntax, programmers sometime use pseudocode. ("Pseudo" means fake.) Pseudocode uses commands in regular human language. It can then be translated into any kind of computer language. The only rule for pseudocode is that it should be easy to understand.  

For the next part of the activity, use your flowchart from part 2 to write your program in lines of pseudocode.   

Read through the information and examples on the Writing Pseudocode handout. Next, write a line of code using pseudocode for each step in your flowchart. 

Then, test your program to see if it works. Just like before, pretend to be the robot. Follow the commands in your program, line by line, and act out what you read. As you test your program, take notes about any problems you find so you can go back and fix them.  

How did it go? 

  • If the robot can complete the task, your program works!  
  • If the robot can’t complete the task, debug the program by going over each step. If the robot does a wrong action, figure out why and revise the code to avoid the error. Then test the code again until the robot completes the task! 

Want more challenge? Try this!

  • Use a programming language for beginners and write a simple program.  
  • Use an educational robot toy or kit to write a simple program.  

And that’s it! You’ve now completed two steps of the Senior Programming Robots badge! If you had fun doing this, you might want to learn more about robots and design your own with the rest of the Senior Robotics badges.


Troop Leaders: The instructions for all badge steps are available free of charge in your  Girl Scout Volunteer Toolkit.

Girl Scout Activity Zone activities have been adapted from existing Girl Scout programming.

Adapted from steps 4 and 5 of the Senior Programming Robots badge. Contact your troop leader or your local Girl Scout council to become a Girl Scout member and learn all the requirements needed to earn the badge.

Explore more activities.

Explore Healthy Relationships
Explore Healthy Relationships

To find out how relationships and health are connected.

Write Pseudocode to Make a Portrait
Write Pseudocode to Make a Portrait

Use pseudocode to create a portrait of yourself or someone you admire.

Investigate a Speech
Investigate a Speech

How to seek the truth in the news you see, hear, and consume every day.

JOIN
VOLUNTEER
DONATE
Enter your email address to subscribe to
the Girl Scouts of the USA newsletter.
Enter your email address to subscribe to
the Girl Scouts of the USA newsletter.

  • Instagram
  • Twitter
  • LinkedIn
  • Youtube
  • Pinterst
  • Facebook
  • Blogger
  • External Link
  • Contact Us
  • Visit Us
  • Careers
  • Leadership
  • Schools
  • Scholarships
  • Sustainability
  • Financials
  • Faith
  • Terms and Conditions
  • Privacy Policy
  • Frequently Asked Questions
  • Press
  • Blog

© 2016-2022 Girl Scouts of the United States of America. 

A 501(c)(3) Organization. All Rights Reserved.

Join

Volunteer

Donate

close