START DECLARE num AS integer array of size 10 DECLARE count AS integer FOR count ← 1 TO 10 num[count] ← count * 2 ENDFOR STOP Trace table headed as follows:

Slides:



Advertisements
Similar presentations
Relational and Equality Operators Table 4-1. Sample Conditions Table 4-2.
Advertisements

Mod arithmetic.
CS3012: Formal Languages and Compilers Static Analysis the last of the analysis phases of compilation type checking - is an operator applied to an incompatible.
Dry Runs and Trace Tables
Freshman Number Sets Week 3. Review Irrational Numbers Numbers that cannot be written as a fraction Rational Numbers Numbers that can be written as a.
Subject: Information Technology Grade: 10
Need for Arrays Exercise Read the IDs and the grades for all ICS 101 students. Compute and print the average of the students. Print the grades and IDs.
Презентація за розділом “Гумористичні твори”
Центр атестації педагогічних працівників 2014
Галактики і квазари.
Характеристика ІНДІЇ.
Процюк Н.В. вчитель початкових класів Боярської ЗОШ І – ІІІ ст №4
1 times table 2 times table 3 times table 4 times table 5 times table
Jeopardy People DatesEventsCultureTriviaEconomy.
Count and add list of numbers From user input and from file.
Data Structures: Arrays Damian Gordon. Arrays Imagine we had to record the age of everyone in the class, we could do it declaring a variable for each.
Python: Arrays Damian Gordon. Arrays In Python arrays are sometimes called “lists” or “tuple” but we’ll stick to the more commonly used term “array”.
Structured Programming Constructs March, 2011Copyright Yvette Francis.
Духовні символи Голосіївського району
Sorting: Selection Sort Damian Gordon. Sorting: Selection Sort OK, so we’ve seen a way of sorting that easy for the computer, now let’s look at a ways.
Arithmetic Expressions Addition (+) Subtraction (-) Multiplication (*) Division (/) –Integer –Real Number Mod Operator (%) Same as regular Depends on the.
Medina  Natural : Medina2 Any number that can be located somewhere on a number line Counting Number Counting numbers including the.
Converting a Decimal to Scientific Notation 1. Count the number N of places that the decimal point must be moved in order to arrive at a number x, where.
Beginning Fortran Introduction 13 October 2009 *Black text on white background provided for easy printing.
$100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300.
Topic: Control Statements. Recap of Sequence Control Structure Write a program that accepts the basic salary and allowance amount for an employee and.
Tables Learning Support
3:00. 2:59 2:58 2:57 2:56 2:55 2:54 2:53 2:52.
Data Structures: Multi-Dimensional Arrays Damian Gordon.
Lesson 5-4 Example Example 1 Draw an array to model and find 21 ÷ 3. 1.Write the answer if you know it. Otherwise, draw an array.
Pseudo-code. Pseudo-code Task 1 Preparation Use the following code to declare, initialise and populate an array in a new VB.NET console application:
Programming revision Revision tip: Focus on the things you find difficult first.
Starter: Program Flowchart & Trace Table
Introducing Instructions
ALGORITHMS & FLOWCHARTING II
Times Tables.
Top Fire Protection Services Ottawa available on Dubinskyconstruction
סדר דין פלילי – חקיקה ומהות ההליך הפלילי
كار همراه با آسودگي و امنيت
Choose the best answer for each problem.

Tests of Divisibility 1 - All integers can be divided by 1
Проф. д-р Васил Цанов, Институт за икономически изследвания при БАН
ЗУТ ПРОЕКТ на Закон за изменение и допълнение на ЗУТ
О Б Щ И Н А С И Л И С Т Р А П р о е к т Б ю д ж е т г.
Електронни услуги на НАП
Боряна Георгиева – директор на
РАЙОНЕН СЪД - БУРГАС РАБОТНА СРЕЩА СЪС СЪДЕБНИТЕ ЗАСЕДАТЕЛИ ПРИ РАЙОНЕН СЪД – БУРГАС 21 ОКТОМВРИ 2016 г.
Сътрудничество между полицията и другите специалисти в България
Съобщение Ръководството на НУ “Христо Ботев“ – гр. Елин Пелин
НАЦИОНАЛНА АГЕНЦИЯ ЗА ПРИХОДИТЕ
ДОБРОВОЛЕН РЕЗЕРВ НА ВЪОРЪЖЕНИТЕ СИЛИ НА РЕПУБЛИКА БЪЛГАРИЯ
Съвременни софтуерни решения
ПО ПЧЕЛАРСТВО ЗА ТРИГОДИШНИЯ
от проучване на общественото мнение,
Васил Големански Ноември, 2006
Програма за развитие на селските райони
ОПЕРАТИВНА ПРОГРАМА “АДМИНИСТРАТИВЕН КАПАЦИТЕТ”
БАЛИСТИКА НА ТЯЛО ПРИ СВОБОДНО ПАДАНЕ В ЗЕМНАТА АТМОСФЕРА
МЕДИЦИНСКИ УНИВЕРСИТЕТ – ПЛЕВЕН
Стратегия за развитие на клъстера 2015
Моето наследствено призвание
Правна кантора “Джингов, Гугински, Кючуков & Величков”
Безопасност на движението
Count on 2 (Over the bridge)
You must show all steps of your working out.
Question 1.
3 times tables.
6 times tables.
Database Programming Using Oracle 11g
Presentation transcript:

START DECLARE num AS integer array of size 10 DECLARE count AS integer FOR count ← 1 TO 10 num[count] ← count * 2 ENDFOR STOP Trace table headed as follows: countnum

countnum

START DECLARE num1, num2 AS integer array of size 5 DECLARE count AS integer FOR count ← 1 TO 5 num1[count] ← count num2[count] ← num1[count] * num1[count] ENDFOR STOP

countnum1num

countnum1num

START DECLARE num1, num2, ans AS integer array of size 4 DECLARE count AS integer FOR count ← 1 TO 4 num1[count] ← count num2[count] ← count + count ans [count] ← num1[count] + num2[count] ENDFOR STOP

countnum1num2ans

START DECLARE SIZE AS constant integer with value 7 DECLARE num1 AS integer array of size SIZE DECLARE count AS integer FOR count ← 1 TO SIZE IF count MOD 2 == 0 THEN num1[count] ← count * 2 ELSE num1[count] ← count * 3 ENDIF ENDFOR STOP

SIZEcountnum

START DECLARE SIZE AS constant integer with value 4 DECLARE cost AS integer array of size SIZE DECLARE discount AS real array of size SIZE DECLARE count AS integer FOR count ← 1 TO SIZE discount[count] = cost[count] * (10/100) ENDFOR STOP Cost will have the values , 5, 10, and 60

 Someone writes answer on the board.