Related Links

  • Science Fair Project Guide

Project Summary

Difficulty  1 
Time required Very Short (a day or less)
Prerequisites None
Material Availability Readily available
Cost Very Low (under $20)
Safety No issues

Donate to Science Buddies

Sponsor

Sponsored by a generous grant from Symantec Corporation

Internet Safety Tips
Get educated about online safety
with help from Symantec.

symantec.com/norton/familyresources

Objective

In this experiment you will test how the number of letters (or characters) in a file change the size of the file.

Introduction

How many letters can you remember? You can actually remember many more letters than you think you can. The trick to your memory is the way letters are put together in meaningful ways: words, sentences, paragraphs and stories. This is called using associations. If you have memorized the alphabet, then you have memorized a pattern of 26 letters. If you have memorized the song "Twinkle, twinkle, little star," (and can spell all of the words) then you have memorized a complex pattern of 129 letters! That's a lot of information!

Verse Number of Letters
Twinkle, twinkle, little star, 24
How I wonder what you are. 20
Up above the world so high, 21
Like a diamond in the sky. 20
Twinkle, twinkle, little star, 24
How I wonder what you are! 20

How does a computer remember information? Since computers can't think like you and I, they can't remember things by forming associations. Instead they have to encode the information by using a pattern. One example is binary code, which is a pattern of zeros and ones that can be used to encode information and store it in your hard drive as a file.

Each piece of information that is stored in a file takes up a certain amount of space in the computer's memory. Since a computer has a limited amount of memory, the size of each file needs to be measured so that the computer can keep track of how much memory has been used and how much memory is free. The amount of space that a file uses is called the file size, and is usually measured in kilobytes (KB) or megabytes (MB).

In this experiment you will test how much memory is needed to store a simple piece of information, the letter A. Actually, one-thousand letter A's! But don't worry, I have a trick to keep you from tiring out your typing fingers.

Terms, Concepts and Questions to Start Background Research

To do this type of experiment you should know what the following terms mean. Have an adult help you search the Internet, or take you to your local library to find out more!

Questions

Bibliography

Materials and Equipment

Experimental Procedure

  1. Open your word processing program. I can be any kind of program for writing and editing text files or documents. Some examples of editing software packages are Text Edit, Microsoft Word, Word Perfect or Claris Works.
  2. Open a new document. Usually this is done by clicking on "File" and then "New..." from the file menu at the top of your screen.
  3. Below is a box filled with 1000 letter A's:

    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

    aaaaaaaaaaaaaaaaaaaa

  4. Copy the letter A's by clicking-and-dragging to highlight all of the letters, then clicking "Edit" and "Copy" from the file menu at the top of your screen.
  5. Paste the letter A's into your new file by clicking inside the new document until you see a blinking cursor, then click on "Edit" and "Paste" from the file menu at the top of your screen.
  6. This will be your first file. It contains 1000 letter A's. Save the file to your computer by clicking "File" and "Save" from the file menu at the top of your screen.
  7. Type a name for your file (like A1000.txt) and click the "Save" button.
  8. Now you want to make a new file with 1000 more letter A's in it. Do this by clicking "File" and "Save As" from the file menu at the top of your screen.
  9. This will be your second file. Type a name for your new file (like A2000.txt) and click the "Save" button.
  10. Next, you want to add more letter A's to your new file. Right now it has 1000 letter A's and you want to add 1000 more. Copy 1000 more letter A's by clicking-and-dragging to highlight all of the letters, then clicking "Edit" and "Copy" from the file menu at the top of your screen.
  11. Paste the new letter A's at the end of your old letter A's by clicking at the end of the last letter A (until you see a blinking cursor after the last letter A), then click on "Edit" and "Paste" from the file menu at the top of your screen.
  12. Your new file contains 2000 letter A's. Save the file to your computer by clicking "File" and "Save" from the file menu at the top of your screen.
  13. Repeat steps 8-12 to make files with 3000, 4000, 5000, etc. letter A's in it. Remember to save each new file with a new name that reflects the number of letters in the file (like A3000.txt, A4000.txt, A5000.txt, etc.).
  14. After you have made and saved each file you can close your word processing application.
  15. Next, you will want to view the files you made by looking in the documents folder of your computer. Use the finder if you are using a Mac or the Start menu if you use a Windows PC.
  16. Write down the size of each file in a data table:

    File Name Number of Letter A's File Size (Kb)
    A1000.txt 1000  
    A2000.txt 2000  
    A3000.txt 3000  
    A4000.txt 4000  

  17. Make a bar graph of your data. On the left side of the graph make a scale of file size from zero to just above your largest piece of data, in increments of 5,000 KB. For example, if my largest file size is 67,000 KB then I would make my scale go to a maximum of 70,000 KB. Draw a bar for each test file up to the number that matches the size of the file. Remember to label each bar with the number of letters in the file, label each axis, and to give your graph a descriptive title.
  18. What happened to the size of the file as more letters were added? Did you see the effect right away? How many letters did it take before you saw a noticeable change in file size?

Variations

Credits

Sara Agee, Ph.D., Science Buddies


Last edit date: 2006-04-20 15:19:33


Career Focus

science career image If you like this project, you might want to think about career opportunities in Computer Science.

Computers are essential tools in the modern world, handling everything from traffic control, car welding, movie animation, shipping, aircraft design, and social networking to book publishing, business management, music mixing, health care, agriculture, and online shopping. Computer programmers are the people who write the instructions that tell computers what to do. Learn more about this career: Computer Programmer.




Join Science Buddies

Become a Science Buddies member! It's free! As a member you will be the first to receive our new and innovative project ideas, news about upcoming science competitions, science fair tips, and information on other science related initiatives.


Support Science Buddies

If this website has helped you, won't you consider a small gift so we may continue developing resources to help teachers and students?

 



 

Science Buddies gratefully acknowledges its Presenting Sponsor
 
It's free! As a member you will be the first to receive our new and innovative project ideas, news about upcoming science competitions, science fair tips, and information on other science related initiatives.


Science Fair Project Home      Our Sponsors      Partners      About Us      Volunteer      Donate      Contact Us      Research Grants & Outreach      Site Map

Science Fair Project Ideas      Science Fair Project Guide      Ask an Expert      Blog      Teacher Resources      Parent Resources      Student Resources      Science Careers     


Privacy Policy Science Buddies

Copyright © 2002-2009 Kenneth Lafferty Hess Family Charitable Foundation. All rights reserved.
Reproduction of material from this website without written permission is strictly prohibited.
Use of this site constitutes acceptance of our Terms and Conditions of Fair Use.