Objective
In this experiment you will test how the font style of the letters (or characters) in a file might change the size of the file.
Introduction
When you write a story on the computer you can make the text look any way you choose:
![]() |
You can change the way letters appear by changing the font. Each font is a set of graphics that represent each letter, often called a character. The computer knows which characters to use by following a code. Each word processing application is a program that writes the code for each character as you type the letters and words in the viewing window. Each character you type is "remembered" by the computer program when you save the information in a file.
How does a computer remember information? 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. When you save a text file, you might choose to embed the encoded text in the file, which will change the amount of information that is in the 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 story of "The Three Little Pigs." You will change the font of the story to see if the size of the file changes. Will the font change the file size? What is the difference between embedded and unembeded text files?
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!
Bibliography
Materials and Equipment
Experimental Procedure
|
There was an old sow with three little pigs, and as she had not enough to keep them, she sent them out to seek their fortune. The first that went off met a man with a bundle of straw, and said to him, "Please, man, give me that straw to build me a house." Which the man did, and the little pig built a house with it. Presently came along a wolf, and knocked at the door, and said, "Little pig, little pig, let me come in." To which the pig answered, "No, no, by the hair of my chinny chin chin." The wolf then answered to that, "Then I'll huff, and I'll puff, and I'll blow your house in." So he huffed, and he puffed, and he blew his house in, and ate up the little pig. The second little pig met a man with a bundle of furze [sticks], and said, "Please, man, give me that furze to build a house." Which the man did, and the pig built his house. Then along came the wolf, and said, "Little pig, little pig, let me come in." "No, no, by the hair of my chinny chin chin." "Then I'll puff, and I'll huff, and I'll blow your house in." So he huffed, and he puffed, and he puffed, and he huffed, and at last he blew the house down, and he ate up the little pig. The third little pig met a man with a load of bricks, and said, "Please, man, give me those bricks to build a house with." So the man gave him the bricks, and he built his house with them. So the wolf came, as he did to the other little pigs, and said, "Little pig, little pig, let me come in." "No, no, by the hair of my chinny chin chin." "Then I'll huff, and I'll puff, and I'll blow your house in." Well, he huffed, and he puffed, and he huffed and he puffed, and he puffed and huffed; but he could not get the house down. |
| File Name | Font Used | File Size (Kb) |
| defaultpigs.txt | default | |
| curlzpigs.txt | Curlz | |
| etc. | ||
| etc. |
Variations
Credits
Sara Agee, Ph.D., Science Buddies
Last edit date: 2006-04-20 15:20:43
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. |