Hey there guys, i've started a new topic, and it's the final topic for the year.
This one is qute interesting and in this post i've got some definations for some simple terms that i'll come accross in this topic.... we're going to be creating a game.
“Computers
never do what you want them to do,
they only do
what you tell them to!”
Using the web, find definitions for
the following terms and post them on your blog. Make sure the
definitions relate to computers and programming
1.
Algorithms- A step-by-step set of instructions that describe how to reach a
goal. (Can be used by computers or can be a set of instructions to perform,
other physical mathematical task by human).
2.
Pseudocode- (pseudo= like something, pretending
to b something) like code, not real code, computer can’t understand it; a
tool used by programmers to describe an algorithm. Contains standard words,
like; begin end.
3.
Machine Language- code for and algorithm written in a
low level language that only the computer understands, i.e. doesn’t have English
words in it.
4.
High Level Computer Language- contains regular words, like; if,
them else...
5.
Flowchart- An algorithm described using a
diagram, it uses standard symbols e.g.<> vertical diamond symbol is used
for selection.
6.
Sequence- the order in which the step are
carried out
7.
Selection- selection in an algorithm is when
you have to make a choice between 2 choices, most selections are se up to
answer a yes/no question
8.
Repetition- when steps are repeated again and
again until a condition is met.
Then with the aid of class discussions,
write an algorithm for the following processes;
1.
opening
a door and entering a room.
1)
Turn
90* to your left
2)
Walk
5 short steps
3)
Turn
90*
4)
Walk
3 steps towards the door
5)
Extend
arm towards the door knob
6)
Grab
door knob
7)
Turn
door knob in a clockwise direction
8)
Pull
the door knob towards yourself
2.
Negotiating
traffic lights as you drive down a street.
1)
Is the
light green?
2)
IF
YES, continue driving
3)
IF
NO, Is the light red?
4)
IF
YES, stop
5)
IF
NO, slow down
continue reading and follow me in this new adventure... well more or less :D
No comments:
Post a Comment