Present Remotely

Send the link below via email or IM

Present to your audience

• Invited audience members will follow you as you navigate and present
• People invited to a presentation do not need a Prezi account
• This link expires 10 minutes after you close the presentation
• A maximum of 30 users can follow your presentation

Do you really want to delete this prezi?

Neither you, nor the coeditors you shared it with will be able to recover it again.

[EN] C_III_2_18.2

Ciklusok, változók
by

My Logiscool

on 14 December 2018

Report abuse

Transcript of [EN] C_III_2_18.2

IT WAS A PLEASURE PROGRAMING WITH YOU!
What is programming?
Programming is to put together statements (steps) in logical order to solve a problem.
Algorithm is a "recipe", which define the order and logic of the statements.
NÉZZÜNK NÉHÁNY PÉLDÁT....
Készítsük el első programunkat!
Scoolcode
MIX course
and what are the statements?
Tiramisu
What's in it?
Determine bigger components
How to make a recipe?
What have we learned last time?
cream
sponge fingers
cocoa
What do we need?
- cocoa powder
- spoon

- scatter
Composite components
-
mix
bowl
-egg whites
-quantities?
egg-beater
another bowl
Sub-components
(from a third party)
we need to dip into coffee,
but we don't have to prepare it.
Reusable knowledge!
Let's draw a SQUARE or a REGULAR PENTAGON!
COMPONENTS
KNOWLEDGE
STEPS
polygon
lines
mathematics
drawing
loops
variables
polygon drawing
angle
loops
increment the number of angles
KNOWLEDGE
maths
drawing
repetition
STEPS
move
turn
Universal solve!
WHILE loop
let i = 1;
while

(
i <= 4
) {
this.move(70);
this.turnLeft(360 / 4);

i++;
}
Conditions
<
<=
!=
==
>=
>
Why don't we use simply the equal sign?
Variables
let

apple

=
4;
We can create variables everywhere in the code!
apple

=
5;
apple

=
"peach";
this.say(
apple
);
stage
{
actor
Dave {
when
clicked {
while
(i < 10) {
this.move(i)
}
}
}
}
Every block's contents should start 4 spaces (1 tab) farther.
indentation
11110001100
print("Hello!")
compilation
execution
Hello!
interpretation
and now
let's start programming...
FOR loop
for

(
let
i
=

1
;
i
<=

4
;
i
++
)

{

this.move(
70
);
this.turnLeft(
360
/
4
);
}
VARIABLE; CONDITION; UPDATE
FOR loop
for

(
let i = 1;
i <= 4;

i++
)

{
this.move(70);
this.turnLeft(360 / 4);
}
VARIABLE; CONDITION; UPDATE
Repeat
n
times in blocks and code
What does the computer understand?
write: hello!
it does NOT understand that. why?
A
Full transcript