<< Chapter < Page Chapter >> Page >
The purpose of this module is to teach you about memory, variables, literals, and algorithms. You will also learn how to write a Scratch program that illustrates the creation and use of variables, case sensitivity, and the ability to detect and respond to mouse and keyboard events.

Table of contents

Preface

This module is one in a collection of modules designed to help beginners of all ages (8 and up) learn how to create the code for computer programs. Information is provided not only for the beginners themselves butalso for their parents and teachers where appropriate.

The purpose of this module is to teach you about memory, variables, literals, and algorithms. You will also learn how to write a Scratch program that illustrates the creation and use of variables, case sensitivity, and the ability to detect and respond to mouse and keyboard events.

Student programming projects

In addition to presenting and explaining a Scratch programming project, I will present two student programming projects that are designed to:

  • Help the student retain the knowledge gained by studying the module.
  • Require the student to think beyond the material presented in the module by requiring the student to answer the question "How do I ...?"

Viewing tip

I recommend that you open another copy of this module in a separate browser window and use the following links to easily find and view the imageswhile you are reading about them.

Images

  • Image 1 . A reduced image of the Scratch user interface for the program named Variable01.
  • Image 2 . A view of the Variables area of the Scratch user interface.
  • Image 3 . Dialog for entering a variable name.
  • Image 4 . Programming blocks in the Control category.
  • Image 5 . The finished program.
  • Image 6 . Example blocks with pointed ends.
  • Image 7 . Output from Project 1.
  • Image 8 . Output from Project 1.
  • Image 9 . Output from Project 2.
  • Image 10 . Output from Project 2.

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Teaching beginners to code. OpenStax CNX. May 27, 2013 Download for free at http://cnx.org/content/col11498/1.20
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Teaching beginners to code' conversation and receive update notifications?

Ask