Wednesday, November 2, 2011

Scratch- FLOW CHART


1. For each of the flowcharts below describe in words what you think they will do.A) 

A)      The flowchart above describes how temperature is shown. Once the termometer is turned on, you read the temp and if the temp is below 32 degrees Celsius it will print "Below Freezing" if it is not below 32 degrees celcius it will print "Above Freezing" and then it will end.

B) 

B)       The flowchart above describes what the responses are when a light is switched on. Once you press start, if the switch is on then the LED will turn on, however if the switch is not on it will keep asking whether the switch is on. Once it is on, the LED will turn on and the timer would start. If one second hasn't expired the timer will keep asking if it's started, however when it starts the LED will turn off and the timer will reset. The process will be ended here.
     

Wednesday, October 26, 2011

scratch- moving animation

This command on scratch allows the character to move

scratch- say something

This task allows the controller playing the game to be involved more , by allowing the character to say something. In this case the character is saying " Lauren is Awesome" . The easy controls make it easy to move. The commands include " when ----- Space key pressed, say_____ something.

Scratch--- whirl

With this task i learned how to use 3 simple tools. Those tools were, the start flag, forever if and the looks- set on whirl.

This task demonstrated how to whirl a character.
The start flag allows the controller to start the game.
The forever if tools allows the whirl settings to continue if a certain key is pressed.

Scratch -- Dance twist

Dance Twist

----> This picture shows my attempt at creating a scratch character to dance and twist. The picture show my character dancing around and twisting. This task was easy and the step were easy to follow.

Monday, October 10, 2011

Computers never do what you want them to do (1st lesson)

“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 process or set of rules to be followed in calculations or other problem-solving operations, esp. by a computer.

2.    Pseudocode- A notation resembling a simplified programming language, used in program design

  1. Machine Language- programming language designed for use on a specific class of computers

4.    High Level Computer Language

5.    Flowchart- The graphical representation of a process, showing each process step as a bubble or box connected by arrows.

6.    Sequence- A particular order in which related events, movements, or things follow each other

7.    Selection- A range of things from which a choice may be made

8.    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;
1.       opening a door and entering a room.
turn around 180' , walk straight 2 steps , put hand out, hold the door, turn the knob clockwise, push the door.
2.       Negotiating traffic lights as you drive down a street.
In your algorithm write each step of the process on a new line. Remember not to assume the computer knows anything.