KTurtle/C3/Control-Execution/English

From Script | Spoken-Tutorial
Revision as of 16:41, 26 December 2012 by Madhurig (Talk | contribs)

Jump to: navigation, search
Visual Cue Narration
Slide Number 1

Hello everybody.

Hello Everybody.

Welcome to this tutorial on Control Execution in KTurtle

Slide Number 2

Learning Objectives

In this tutorial, we will learn

'while' loop and 'for' loop

Slide Number 2

Learning Objectives

In this tutorial, we will learn
  • 'while' loop and
  • 'for' loop
Slide Number 3

System Requirement

To record this tutorial I am using,

Ubuntu Linux OS Version 12.04

KTurtle version 0.8.1 beta.

Slide Number 4

Pre-requisites We assume that you have basic working knowledge of Kturtle.

If not,

for relevant tutorials, please visit our website. http://spoken-tutorial.org

Switch to KTurtle Application

Dash home >>Search bar appears>> In the Search bar type KTurtle

Let's open a new KTurtle Application.

Click on Dash home. The Search bar appears. In the Search bar, type KTurtle. Click on the option. KTurtle Application opens.

Let me first explain about what is control execution.
Slide Number 5

Control execution

Control execution is controlling the flow of a program.

Different conditions are used to control program execution.

Slide Number 6

Loop

Loop is a block of code is executed repeatedly untill a certain condition is satisfied.

Eg. “while” loop and “for” loop

Let's begin the tutorial with “while” loop
Slide Number 7

“while” loop

In the “while” loop, the code inside the loop repeats till boolean evaluates to 'false'.
Slide Number 8

Syntax of “while” loop

Let me explain the structure of “while” loop.

while loop condition {

 do something 
 with  loop increment variable

}

Contributors and Content Editors

Madhurig