Skip to main content
Brownie Coding Basics 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. Brownies
  3. Brownie Coding Basics Badge Activity

Brownies

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

STEM

Brownie Coding Basics Badge Activity

Create Algorithms for a Computer

Learn about algorithms for Step One of the Coding Basics badge.

Activity Details

Setup: Computers may seem really smart because they can do lots of things for us. But computers can only do things they’re told to do using a special language called code.

For example, a computer scientist can create a list of steps for a robot. The robot follows the steps to do anything from moving through a maze to doing surgery. A list of steps to complete a task is called an algorithm. Once you know what an algorithm is, you can then write or follow one to complete any type of task!

Time needed: 20 minutes

Materials needed:

  • 3+ markers of different colors
  • 1 pencil
  • A few sheets of blank paper

Activity:

To get started, create a 5x5 grid on a blank sheet of paper. Your grid can be as large as the paper, and it’s okay if the boxes are rectangular.

After that, design your quilt pattern by coloring in the blank grid with the different colored markers.

Once you’ve created the pattern, write an algorithm to tell someone else how to create your quilt!

Make sure to use a new numbered line for each row on your quilt. On each line, write the colors for each patch in the order, or sequence, you colored them, from left to right. 

For example: Line 4: Blue, Green, Purple, Green, Blue

After you write your algorithm, test it by following the steps to color in a new grid. Make another blank 5x5 grid and color it in according to your algorithm.

How did you do? Does the new quilt match your original design? If not, that’s okay! This often happens to computer scientists!  

In computer science, a problem or error in your code is called a bug. When you find and fix a bug, it's called debugging. When programmers find a bug, they go back to their algorithm, find the problem, and fix it.

If you get stuck or your algorithm doesn't work, you can always work with others to talk it out, identify the bug, and sketch a new plan to find a solution that works. 

Remember, it's okay if your algorithm doesn't go the way you want it to on the first, second, or even third try! Computer scientists persevere and continue to try and solve the problem even when they're faced with big challenges. When you persevere, you don't give up. Instead, you do your best and work towards a goal, even if it's a big challenge. 


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

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

Adapted from Step 1 of the Brownie Coding Basics 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.

Be an Inventor
Be an Inventor

Come up with an idea that makes life better—just like entrepreneurs do.

Make A Bug Box
Make A Bug Box

Build a box to observe bugs and learn how they move before releasing them.

Rewriting Nursery Rhymes
Rewriting Nursery Rhymes

Explore a nursery rhyme and how it might have stereotypes.

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