Loops Objectives Students will: 1. Explain what a loop is and describe the three main types of loops used in programming. 1. Дать понятие циклам. И объяснить.

Презентация:



Advertisements
Похожие презентации
UNIT 2. Introduction to Computer Programming. COM E 211: Basic Computer Programming UNIT 2. Introduction to Computer Programming Algorithm & Flowcharting.
Advertisements

Combination. In mathematics a combination is a way of selecting several things out of a larger group, where (unlike permutations) order does not matter.
Loader Design Options Linkage Editors Dynamic Linking Bootstrap Loaders.
Section 2.1: Use Inductive Reasoning Conjecture: A conjecture is an unproven statement that is based on observations; an educated guess. Inductive Reasoning:
Escalating TAC Service Request © 2004 Cisco Systems, Inc. All rights reserved. IPTT v TAC Service Request and Telephone Service Providers.
© 2006 Avaya Inc. All rights reserved. Programmable Buttons and features.
Выпускная работа учителя английского языка Злобенко О.В. - школа 98, СПб -
Michael Marchenko. In mathematics, a sequence is an ordered list of objects (or events). Like a set, it contains members (also called elements, or terms),
11 BASIC DRESS-UP FEATURES. LESSON II : DRESS UP FEATURES 12.
© 2006 Cisco Systems, Inc. All rights reserved. CVOICE v Configuring Voice Networks Configuring Dial Peers.
HPC Pipelining Parallelism is achieved by starting to execute one instruction before the previous one is finished. The simplest kind overlaps the execution.
A poem on Children. Why God Made Teachers ? God understood our thirst for knowledge, and our need to be led by someone wiser; He needed a heart of compassion,
Peer pressure. Aim: to provide practice in making up dialogues and speaking on the topic Peer pressure. Objective: by the end of the lesson the students.
© The McGraw-Hill Companies, Inc., Chapter 4 Counting Techniques.
Lesson 3 - HTML Formatting. Text Formatting Tags TagDescription Defines bold text Defines big text Defines emphasized text Defines italic text Defines.
PLUSES AND MINUSES OF THE INTERNET. I N OUR TIME THE INTERNET SHOWS BY ITSELF ONE OF MAJOR PARTS OF THE WORLD. N OW ABOUT HIM KNOW EVERYTHING LITERALLY.
© 2005 Cisco Systems, Inc. All rights reserved. BGP v Route Selection Using Policy Controls Applying Route-Maps as BGP Filters.
Taking out Money from a Cash Machine Authors: Aleksey Ermolaev, Daria Zaitseva, Maria Leontyeva, Anatoly Leshchev, Form 10 pupils Teacher: V. V. Sergoushina,
Yogesh Mehla Now concept of logic building is not so complex and not so simple. We will not work on how to make logic program in.
© 2006 Cisco Systems, Inc. All rights reserved. HIPS v Configuring Rules Rule Basics.
Транксрипт:

Loops

Objectives Students will: 1. Explain what a loop is and describe the three main types of loops used in programming. 1. Дать понятие циклам. И объяснить 3 основных вида циклов используемых в программировании. 2. Practice using loops in Pascal 2. Практическое закрепление. Циклы в Паскале. Студенты ; целей будут :

Vocabulary Instructions Loop Condition Repeat A way to control information A set of orders or directions To do an action a number of times Something which restricts or determines an action

Loops (definition) A loop is used to make a computer do something more than one time. Цикл предназначен для выполнения компьютером действий больше одного раза.

LOOPS Three different types of Loops FOR REPEAT UNTIL WHILE

FOR Loop Jump 5 times or Jump FOR 5 times The command jump is given FOR a specific number of times. In this case it is 5 times.

FOR Loops The for loop is used to repeat a command or action for a specific number of times. This is determined by the program or the user. The loop "counts" the number of times the action will be executed. This loop is a good choice when the number of repetitions is known, or can be supplied by the user.

FOR LOOP PRACTICE

Repeat Until loop Jump UNTIL I say stop. Instructions are carried out UNTIL a condition occurs. This condition occurs after the instructions are started.

Repeat until Loops A repeat until loop will repeat the instruction UNTIL a condition is met. The computer will start the loop first and will stop after the condition is met. This loop is a good choice when you do not want or need to specify a number of repeats.

While Loop Simon says…..Jump ……………………Jump The condition is checked first before the instructions are carried out. The instructions are carried out while the condition is true.

While Loops A while loop will repeat the instruction AFTER a condition is met. The condition is checked first before the instructions are carried out. The instructions are carried out while the condition is true.

While LOOP Practice