Skip to main content
Brownie Coding Basics Badge Activity
Home Home Home
Home Home Home
  • SHOP
  • DONATE
  • MyGS MyGS MyGS
  • Order Cookies Order Cookies Order Cookies
  • Events Events Events
  • Program Guide Program Guide Program Guide
  • Contact Us Contact Us Contact Us
  • Discover Discover

    About Girl Scouts About Girl Scouts

    • What Girl Scouts Do What Girl Scouts Do
    • Our Program Our Program
    • Ways to Participate Ways to Participate

    Our Council Our Council

    • Our Properties Our Properties
    • Publications Publications
    • Board of Directors Board of Directors
    • Staff Directory Staff Directory
    • Belonging Belonging

    Explore Explore

    • Events Events
    • Event Calendar Event Calendar
    • Camp & Outdoors Camp & Outdoors
    • Shop Shop

    Discover your local Girl Scout council: about Girl Scouts, what they do, what activities are available locally, and how to contact us.

  • Get Involved Get Involved

    Become a Girl Scout Become a Girl Scout

    • Join a Troop Join a Troop
    • Find a Troop Find a Troop
    • Go Solo Go Solo

    Become a Volunteer Become a Volunteer

    • Start a Troop Start a Troop
    • Background Checks Background Checks

    Financial Aid Financial Aid

    • Learn About Financial Aid Learn About Financial Aid
    • Apply for Financial Aid Apply for a Financial Aid

    Learn how to get involved with Girl Scouts: join a troop, go solo, or become a volunteer.

  • Programs Programs

    Girl Scout Cookies Girl Scout Cookies

    • For Cookie Sellers For Cookie Sellers
    • Cookie Manager Manual Cookie Manager Manual
    • Digital Cookie Digital Cookie
    • Cookie CEO Cookie CEO
    • Cookie Forms & Documents Cookie Forms & Documents
    • Volunteer Cookie Resources ABC Volunteer Cookie Resources ABC
    • Find Cookies Find Cookies
    • Cookie Flavors Cookie Flavors

    Snacks & More Program Snacks & More Program

    • Explore Snacks & More Explore Snacks & More

    Camp Camp

    • Frias Frontier Frias Frontier
    • Camp History Camp History
    • Reserve Our Property Reserve Our Property
    • Meet Our Herd Meet Our Herd
    • Day Camp Ducktail Day Camp Ducktail

  • Support Us Support Us

    Donate Locally Donate Locally

    • Fundraising Events Fundraising Events
    • Our Supporters Our Supporters
    • Lifetime Membership Lifetime Membership
    • Planned Giving Planned Giving

    Legacy Legacy

    • Alum Alum

    Corporate Giving Corporate Giving

    • Gift of Caring Gift of Caring
    • Care to Share Care to Share

    Support Girl Scouts by donating locally, becoming a lifetime member, or joining the Girl Scout Network for alums and supporters.

  • Members Members

    For Girl Scouts For Girl Scouts

    • Renew Your Membership Renew
    • Badges and Awards Badges and Awards
    • Highest Awards Highest Awards
    • Scholarship Opportunities Scholarship Opportunities

    For Volunteers For Volunteers

    • Rallyhood Rallyhood
    • Forms and Documents Forms and Documents
    • Troop Leader Blueprint Troop Leader Blueprint
    • Volunteer Events Volunteer Events
    • Volunteer Essentials Volunteer Essentials

    For Parents & Families For Parents & Families

    • How to Get Involved How to Get Involved
    • Background Check Info Background Check Info
    • Military Families Military Families

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

  • SHOP
  • DONATE
  • MyGS MyGS MyGS
  • Order Cookies Order Cookies Order Cookies
  • Events Events Events
  • Program Guide Program Guide Program Guide
  • Contact Us Contact Us Contact Us

Council Finder

Use this finder to connect with your local Girl Scout council.

By ZIP Code

By State

By Council

close
You are leaving girlscouts.org for a website opened by an external party. You will be subjected to the privacy and security policies of the website
  1. Discover
  2. Our Council
  3. Our Program
  4. Grade Levels
  5. What Brownies Do
  6. Brownie Coding Basics Badge Activity

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. 

Design and Sculpt Your Own Vehicle
Design and Sculpt Your Own Vehicle

Explore the steps creative designers take to create a vehicle as you sketch.

Rewriting Nursery Rhymes
Rewriting Nursery Rhymes

Explore a nursery rhyme and how it might have stereotypes.

Collect Data About Birds
Collect Data About Birds

Learn about birds in your area and go bird watching

JOIN
VOLUNTEER
DONATE
  • Instagram
  • Twitter
  • LinkedIn
  • Youtube
  • Pinterst
  • Facebook
  • Contact Us
  • Events
  • Visit Us
  • Careers
  • Schools
  • Staff Directory
  • Terms and Conditions
  • Privacy Policy

© 2025 Girl Scouts of Southern Nevada

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

Join

Volunteer

Donate

close