Grade 7 · Unit 6 · ኢንፎርሜሽን ቴክኖሎጂ

Grade 7 Information Technology — Unit 6: Logic Oriented Graphics Oriented Programming

የ7ኛ ክፍል ኢንፎርሜሽን ቴክኖሎጂ መጽሐፍ — ክፍል 6

Kitaaba teeknooloojii odeeffannoo kutaa 7 — Kutaa 6

Full Grade 7 IT textbook: all 6 units →

This page is an Abrari study guide for Unit 6 of Grade 7 Information Technology: Logic Oriented Graphics Oriented Programming. This unit is your first step into writing computer programs. A programming language is a made-up language people use to tell a computer exactly what to do, and LOGO is one that was built for children because it is simple and good at making pictures. Use the study-check questions, then try unofficial unit practice. Abrari is an independent study aid — not affiliated with the Ministry of Education, EAES, MoLS, or OCACC.

This unit is your first step into writing computer programs. A programming language is a made-up language people use to tell a computer exactly what to do, and LOGO is one that was built for children because it is simple and good at making pictures.

Study guide: Logic Oriented Graphics Oriented Programming

Abrari study notes written from this unit (book pages 76–94) and checked against it. A study aid, not the textbook and not reviewed by a teacher.

This unit is your first step into writing computer programs. A programming language is a made-up language people use to tell a computer exactly what to do, and LOGO is one that was built for children because it is simple and good at making pictures. In LOGO you type short commands and a small triangle called the turtle moves on the screen and draws. The unit shows how to open MSW Logo, the most common program for writing LOGO, and names the parts of its screen, such as the main graphic screen, the commander window, the listener window and the command input box. You then learn the four basic drawing commands (forward, back, right and left) and the clear screen command. Finally, you learn to group many commands into a procedure with its own name, such as SQUARE, and run it by typing that one word. Learning LOGO is fun, sharpens logical thinking and develops programming skills.

What you will learn

  • Define a programming language and explain what LOGO stands for.
  • Describe the main parts and screen elements of the MSW Logo window.
  • Use the commands fd, bk, rt, lt and cs to move the turtle and draw shapes.
  • Explain what a procedure is and why primitive commands are different from new procedures.
  • Write a procedure using the TO command or the Editor window.
  • Run a saved procedure by typing its name in the command input box.

Programming languages and LOGO

A computer programming language is an artificial language made for giving instructions to a computer. Examples include C++, Python, Java and LOGO. LOGO, short for Logic Oriented Graphics Oriented, was first created to introduce children to the ideas of programming. It is easy to learn and has strong graphics features. Its drawing part is called turtle graphics, and it lets you make detailed pictures while writing only a little code. There are three good reasons to study LOGO: it is enjoyable, it improves a child's logical thinking, and it builds programming skills. Before you can write LOGO programs, the software must be installed on your computer. MSW Logo is the program most people use for this, and it is the one used throughout this unit.

Opening MSW Logo

There are two ways to start MSW Logo. The quick way is to click its icon on the desktop. The other way is to click the Start button, then choose Programs, and then pick Microsoft Windows Logo from the list. Once the program is open, you can watch a demonstration of what it can do. To see it, open the Help menu and choose Demo. Remember that LOGO is a text-based language: you type the commands as words and numbers, and the program turns them into drawings on the screen. Programs you save in LOGO get the file extension LOGO.

Parts of the MSW Logo screen

The MSW Logo window has two main parts. The main screen, also called the graphic screen, is where the pictures appear. The commander window is where you give orders to the turtle. Looking more closely, the title bar shows the program name, MSW Logo. The menu bar holds options for handling, editing and formatting files, and each menu title opens more choices when clicked. The button bar gives extra shortcuts; you point at a button and click the left mouse button to use it. The listener window is the area where commands are typed. The turtle is the triangle in the middle of the graphic screen that moves as you command. In the lower left of the commander window is the command input box, and above it is the output or command-recall list box, which keeps a record of executed commands and their messages.

Basic drawing commands

MSW Logo has four basic drawing commands: move the turtle forward, move it backward, turn it right and turn it left. The turtle starts at its home, which is the centre of the screen. Each command has a short form: fd for forward, bk for backward, rt for right and lt for left. Every one of these needs a value after it, called an argument. For fd and bk the argument is a number of steps, while for rt and lt it is an angle in degrees, which can be any integer. So fd 10 moves the turtle 10 steps ahead, bk 10 moves it 10 steps back, rt 90 turns it 90 degrees to the right and lt 90 turns it 90 degrees to the left. Another common command, cs (clear screen), wipes away all drawings and puts the turtle back in the centre.

What a procedure is

A procedure is a group of instructions saved under a name that tells you what it does. Procedures help break a big project into smaller pieces that work together. Commands that LOGO already knows, like FORWARD and BACK, are called primitive procedures, or primitives. You can also teach LOGO new words and then use them just like the built-in ones. Typing one short name is much easier than typing a long list of commands each time. For example, instead of typing REPEAT 4 [FORWARD 100 RIGHT 90] whenever you want a square, you can make a procedure called SQUARE. The name should be a single word that describes the job, so you remember its purpose. You must define a procedure before using it; if you do not, LOGO replies that the procedure is not in its vocabulary yet.

Defining and running procedures

You can define a procedure in two ways. With the TO command, click in the command input box, type TO and a name such as TO SQUARE, and press Enter. A To Mode input box appears; click inside it, type the commands one by one pressing Enter after each, and finish with END. With the Editor window, type Edit "Square" in the command input box and press Enter. In the Editor window, press Enter to add a blank line after TO SQUARE, type your commands, then open the File menu and choose Save and Exit. Commands typed this way are stored for later and are not carried out at once. Running a procedure means carrying out its saved commands. To run it, type its name, for example SQUARE, in the command input box and press Enter, and the turtle draws the square.

Key terms

Programming language
An artificial language, with its own grammar rules, used to tell a computer what tasks to carry out.
LOGO
Logic Oriented Graphics Oriented, a high level programming language made to be easy to use and good at drawing graphics.
MSW Logo
The software most commonly used on a computer to write and run LOGO programs.
Turtle graphics
The drawing part of LOGO, which lets you create detailed pictures with very little code.
Turtle
The triangle-shaped pointer in the centre of the graphic screen that moves and draws as you command it.
Main screen (graphic screen)
The part of the MSW Logo window where the pictures and figures are drawn.
Commander window
The part of the MSW Logo window where you give commands to the turtle.
Command input box
The box at the lower left of the commander window where you type a command and run it with Enter or the Execute button.
Argument
The value that must follow a drawing command, such as a number of steps for fd and bk or an angle for rt and lt.
Primitives
The basic commands LOGO already knows, such as FORWARD and BACK, also called primitive procedures.
Procedure
A set of instructions saved under a descriptive name that can be run again and again by typing that one word.
cs (clear screen)
A command that erases all drawings and returns the turtle to the centre of the screen.

Worked example

Use the TO command to define a procedure called SQUARE that draws a square, and then run it.

  1. Click in the command input box so you can type.
  2. Type TO SQUARE and press Enter; the To Mode input box opens.
  3. Click inside the To Mode box and type the drawing commands one at a time, pressing Enter after each, for example REPEAT 4 [FORWARD 100 RIGHT 90].
  4. Type END to show that the procedure is finished; the commands are now saved, not yet run.
  5. Type SQUARE in the command input box and press Enter to run the procedure.

Answer: The turtle carries out the saved commands and draws a square on the graphic screen whenever SQUARE is typed.

Check your understanding

  1. Why is LOGO a good first programming language for children?

    Show answer

    It is simple and easy to learn, it can make pictures with little code, it is fun, and it builds logical thinking and programming skills.

  2. What is the difference between the argument of fd 30 and the argument of rt 30?

    Show answer

    In fd 30 the 30 is a number of steps the turtle moves; in rt 30 the 30 is an angle in degrees the turtle turns.

  3. Write the commands that move the turtle 20 steps forward, turn it 50 degrees left, and move it 20 steps forward again.

    Show answer

    fd 20, lt 50, fd 20 (or forward 20, left 50, forward 20).

  4. Why is it useful to write a procedure such as SQUARE instead of typing all the commands each time?

    Show answer

    One short name replaces a long list of commands, saves typing, and helps split a large project into smaller parts.

  5. What happens if you type a procedure name before you have defined it, and how do you fix it?

    Show answer

    LOGO says the procedure is not in its vocabulary yet; you must first define it with TO or the Editor window and then run it.

Common mistakes

  • Typing a command like fd or rt without a value after it; every basic drawing command needs an argument.
  • Mixing up the arguments: thinking rt 90 moves the turtle 90 steps, when it actually turns it 90 degrees.
  • Trying to run a procedure before defining it, or forgetting to type END (or Save and Exit) so the procedure is never stored.

Frequently asked questions

Is this the Grade 7 Information Technology Unit 6 textbook chapter?
Yes. This page is Unit 6 (“Logic Oriented Graphics Oriented Programming”) of the Ethiopian new-curriculum Grade 7 Information Technology student textbook (7ኛ ክፍል ኢንፎርሜሽን ቴክኖሎጂ የተማሪ መጽሐፍ). Abrari credits the issuing bureau or the Ministry of Education as publisher of the classroom book and is not affiliated with MoE, EAES, MoLS, or OCACC.
How do I practice Grade 7 Information Technology Unit 6?
Read the unit in the on-site reader, then open unofficial Information Technology practice on Abrari. Explanations do not require an account. Answers are unofficial.
How do I study Grade 7 Information Technology Unit 6?
Use the study-check questions on this page, then open unofficial practice when it is listed. Abrari does not offer a download.
Is Abrari official?
No — Abrari is an independent study aid, not affiliated with, endorsed by, or an official product of the Ethiopian Ministry of Education (MoE), EAES, MoLS, or OCACC.

No mapped EUEE topic for this unit yet. Browse the subject hub, or read the full textbook.

All Information Technology EUEE topics

Other units in this book