Sunday, October 30, 2011
Practice game
I have been playing around with Scratch, and using the links on the school website I have made this game. You are the bird, and you have to catch the cricket. After a certain number of points have been achieved, a cat will appear. You must avoid the cat while still chasing the cricket. The cat will dissapear when you achieve another 10 points.
Sunday, October 9, 2011
Sample Flowcharts
Description of flowcharts
This flow chart is for testing the temperature of things, and calculating whether it is above or below 32 degrees.
This flowchart is of a one second response to a switch.
How to use word to draw flowcharts
Below is a basic flow chart showing the 5 basic
flowcharting symbols. (continued below...)
This diagram is typical of most flow charts you
will find in process documentation. Using these basic symbols is a simple but
effective way to provide a graphical snapshot of a process. The following is an
overview of the symbols:
·
The rectangles indicate
Process steps.
·
The diamonds indicate
Decisions, or branches in the process.
·
The circles indicate
Connectors which act as jump nodes from one part of the process to another.
·
The ovals ( Terminators)
indicate the process boundaries, showing where the process starts and stops.
·
The arrows ( Flow Lines)
indicate the process flow direction.
Questions on Flowcharts
- For each of the flowcharts below describe in words what you think they will do.
This flow chart is for testing the temperature of things, and calculating whether it is above or below 32 degrees.
This flowchart is of a one second response to a switch.
How to use word to draw flowcharts
You
can go to
this link for an explanation of the shapes in word that can be used for
flowcharts, just don’t bother giving them your email address.
Then you can use word to
answer the following question.
- Convert one of the algorithms you have created in the previous task into a flowchart, e.g. opening a door, moving through a traffic light.
Computer Algorithems
Using the web, find definitions for
the following terms and post them on your blog. Make sure the
definitions relate to computers and programming
AlgorithmsA process or set of rules to be followed in calculations or other problem-solving operations, especially by a computer.
Pseudo code
Pseudocode is a compact and informal high-level description of a computer programming algorithm that uses the structural conventions of a programming language, but is intended for human reading rather than machine reading
Machine Language
computer language: a programming language designed for use on a specific class of computers.
High Level Programming Language
a diagram of the sequence of operations in a computer program or an accounting system.
A particular order in which related events, movements, or things follow each other
Selection
The action or fact of carefully choosing someone or something as being the best or most suitable
Repetition
The action of repeating something that has already been said or written
Then with the aid of class discussions,
write an algorithm for the following processes;
Opening
a door and entering a room.1. face the door
2. reach out with left hand and grasp door handle
3. turn door handle
4. step forward through the door
5. enter the adjacent room
Negotiating traffic lights as you drive down a street.
1. If the traffic light is red, stop
2. If the traffic light is orange, prepare to stop
3. If the traffic light is green, continue
In your algorithm write each step of
the process on a new line. Remember not to assume the computer knows anything.
Subscribe to:
Posts (Atom)
