Sunday, October 9, 2011

'Computers never do what you want them to do, they only do what you tell them to!'

Defintions:1. Algorithms - A process or set of rules to be followed in calculations or other problem-solving operations. eg. by a computer.
2. Pseudocode - In computer science and numerical computation, pseudocode is a compact and high-level description of the operating principle of a computer program.
3. Machine Language -  a programming language designed for use on a specific class of computers.
4. High Level Computer language - A high level programming language is a programming language with strong abstractation from the details of the computer.
5. Flowchart - a diagram of the sequence of operations in a computer program or an accounting system.
6. Sequence - A particular order in which related events, movements, or things follow each other.
7. Selection - The action or fact of carefully choosing someone or something as being the best or most suitable.
8. Repetition - The recurrence of an action or event.

Algorithms:
Opening a door and entering a room:
1. Walk towards the door
2. Place hand around the knob on the door
3. Twist the knob in a clockwise direction, if that doesn't work turn it anti-clockwise.
4. Push the door away from you.
5. Walk through the doorway and enter the room

No comments:

Post a Comment