<< Chapter < Page
  Teaching beginners to code     Page 1 / 9
Chapter >> Page >
The purpose of this module is to teach you about structured programming; the sequence structure, the selection structure, and the loop structure. The module will also teach you how to write a Scratch program that illustrates the selection structure, mouse events, and Cartesian coordinates.

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 structured programming; the sequence structure, the selection structure, and the loop structure. The module will also teach you how to write a Scratch program that illustrates the selection structure, mouse events, and Cartesian coordinates.

The module also presents a student project by which you can demonstrate your understanding of the concepts learned by studying the module.

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 . The sequence structure in pseudocode.
  • Image 2 . The selection structure in pseudocode.
  • Image 3 . The loop structure in pseudocode.
  • Image 4 . User interface for the program named IfSimple01.
  • Image 5 . A paraphrased version of the Scratch code.
  • Image 6 . Program code for the left beach ball
  • Image 7 . Initializing the position and orientation of the basketball.
  • Image 8 . All of the code that applies to the basketball.
  • Image 9 . Pseudocode for a selection structure.
  • Image 10 . Two independent decisions.
  • Image 11 . Selection control structures available in Scratch.
  • Image 12 . Programming blocks belonging to the Sensing group.
  • Image 13 . Programming blocks belonging to the Motion group.
  • Image 14 . Initial output from the program named IfWithVar01.
  • Image 15 . Program output after having clicked twice in the Stage area.

Questions & Answers

Explain the following terms . (1) Abiotic factors in an ecosystem
Nomai Reply
Abiotic factors are non living components of ecosystem.These include physical and chemical elements like temperature,light,water,soil,air quality and oxygen etc
Qasim
what is biology
daniel Reply
what is diffusion
Emmanuel Reply
passive process of transport of low-molecular weight material according to its concentration gradient
AI-Robot
what is production?
Catherine
Pathogens and diseases
how did the oxygen help a human being
Achol Reply
how did the nutrition help the plants
Achol Reply
Biology is a branch of Natural science which deals/About living Organism.
Ahmedin Reply
what is phylogeny
Odigie Reply
evolutionary history and relationship of an organism or group of organisms
AI-Robot
ok
Deng
what is biology
Hajah Reply
cell is the smallest unit of the humanity biologically
Abraham
what is biology
Victoria Reply
what is biology
Abraham
HOW CAN MAN ORGAN FUNCTION
Alfred Reply
the diagram of the digestive system
Assiatu Reply
allimentary cannel
Ogenrwot
How does twins formed
William Reply
They formed in two ways first when one sperm and one egg are splited by mitosis or two sperm and two eggs join together
Oluwatobi
what is respiration
Deborah
what is genetics
Josephine Reply
Genetics is the study of heredity
Misack
how does twins formed?
Misack
What is manual
Hassan Reply
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

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