Jump to main content

How Many Letters?

1
2
3
4
5
263 reviews
Log In

This feature requires that you be logged in as a Google Classroom teacher and that you have an active class in Google Classroom.

If you are a Google Classroom teacher, please log in now.

For additional information about using Science Buddies with Google Classroom, see our FAQ.

Abstract

Can you remember all of your ABC's? Computers need to "remember" letters too. Every time we use a computer to write a story, the computer needs to "remember" the letters in the story by saving them to the computer's memory as a file. In this experiment find out how much memory it takes for the computer to "remember" a series of letters.

Summary

Areas of Science
Difficulty
 
Time Required
Very Short (≤ 1 day)
Prerequisites
None
Material Availability
Readily available
Cost
Very Low (under $20)
Safety
No issues
Credits

Sara Agee, Ph.D., Science Buddies

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 and Concepts

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

  • Each letter is a piece of information that is encoded and stored as a file in your computer. Find out about how information is stored and measured:
    T1 Shopper, 2006. Byte Converter - File Size Calculator. Retrieved 3/10/06.
  • In computing terminology a letter is one example of a character. Find out more about characters and how they are encoded:
  • Wikipedia Contributors, 2006. Character (computer), Wikipedia, the Free Encyclopedia. Retrieved 3/10/06.

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?
icon scientific method

Ask an Expert

Do you have specific questions about your science project? Our team of volunteer scientists can help. Our Experts won't do the work for you, but they will make suggestions, offer guidance, and help you troubleshoot.

Variations

  • Try using different letters than the letter A, or combinations of letters. Try copying the alphabet over and over. Do you get a similar result?
  • Try comparing different font styles or letter sizes. Does changing the font size increase the file size? Do some font styles take more memory than other styles?
  • If you have more than one text editor or word processing program, you can compare the file sizes for the same text created by three different applications. Save the same text as a file in each application and compare the file sizes. Are the files the same size? Which application creates files that use the most memory? Which application creates files that use the least? How might this relate to the number of features that each application offers?
  • For a more advanced project, you can make a line graph of your results from each application. Put the number of letters on the X-axis and the file size on the Y-axis. Is the relationship linear? Does your line pass through the origin? What information might the Y-intercept tell you about the baseline for each application? Is the Y-intercept the same for each application? Is the slope the same for each application?

Careers

If you like this project, you might enjoy exploring these related careers:

Career Profile
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. Read more
Career Profile
Software quality assurance engineers and testers oversee the quality of a piece of software's development over its entire life cycle. Their goal is to see to it that the final product meets the customer's requirements and expectations in both performance and value. During the software life cycle, they verify (officially state) that it is possible for the software to accomplish certain tasks. They detect problems that exist in the process of developing the software, or in the product itself.… Read more

News Feed on This Topic

 
, ,

Cite This Page

General citation information is provided here. Be sure to check the formatting, including capitalization, for the method you are using and update your citation, as needed.

MLA Style

Science Buddies Staff. "How Many Letters?" Science Buddies, 20 Nov. 2020, https://www.sciencebuddies.org/science-fair-projects/project-ideas/CompSci_p014/computer-science/how-many-letters?class=AQVTAO8FRETD38vMuJkjvOSNDPJOuAAGMAmKAaJSOTWdOvr6mkWnSdEaxmxliKuZkEWcHP3OWSKr6AsObi3q746c3GEgxyWDTuUCDCqBwA75AQ. Accessed 20 Apr. 2024.

APA Style

Science Buddies Staff. (2020, November 20). How Many Letters? Retrieved from https://www.sciencebuddies.org/science-fair-projects/project-ideas/CompSci_p014/computer-science/how-many-letters?class=AQVTAO8FRETD38vMuJkjvOSNDPJOuAAGMAmKAaJSOTWdOvr6mkWnSdEaxmxliKuZkEWcHP3OWSKr6AsObi3q746c3GEgxyWDTuUCDCqBwA75AQ


Last edit date: 2020-11-20
Top
Free science fair projects.