1. Algorithms a programmed procedure to carry out a process followed in calculations or other problem-solving operations. they are made up of three things, sewuence, selection and repitition.
2. Pseudocode a notation resembling a simplified programming language, used in program design.
3. Machine Language a programming language designed for use on a specific class of computers.
4. High Level Computer Language an advanced computing language that are instructions in simple terms in a particular structure. (syntax) It is easily understood by both the computer and people.
5. Flowchart is a diagram of the sequence of operations in a computer program or an accounting system. Uses set symbols to describe an algorithm.
6. Sequence is the order in which the steps have to be carried out. it is important because
7. Selection where you make a choice between available options. A selection is present usually when the word 'if' is used. Most algorithms have selection included.
8. Repetition is very useful in an algorithm to repeat a steps in a sequence until a condition is satisfied.
1 - opening a door and entering a room. face door and approach door until your a a foot away. stretch out your arm closest to door knob and grasp handle tightly. then twist door knob until you hear a click and push the door open.
2. negotiating traffic lights as you drive down a street. there are three different colours that light up in a traffic light. when the green is lit you go, when the red is lit you stop and when the yellow is lit, you are encouraged to stop for the lights are soon to change to red. when driving and the light is green, drive through at your present speed. when driving and the light is red you stop. when driving and the light is yellow you slow down and stop. if you approach the lights when the light turns yellow, drive throught at present speed.
No comments:
Post a Comment