Вы находитесь на странице: 1из 9

Notes

Automate- to make something happen automatically


(without human interaction)
Computer science- the art of blending digital tools and ideas
to increase problem solving power
Computer scientist- a person who is skilled at modifying
problems for digital solutions
Data- information, including: facts, samples, names, and
numbers
Environment- the world we live in
Interface Open source- software that is created for free use by
everyone
Programming- writing instructions for a digital tool
Simulation- pretending to be (a stand in for) the real thing
Encode- to code something
Decode- to get rid of the code
Computational thinking- a method of problem solving that
helps computer scientist prepare problems for digital
solutions
Abstraction- removing details from a solution so that it can
work for many problems
Algorithm- a list of steps that allow you to complete a task
Decompose- to break a hard problem up into smaller, easier
ones
Pattern- a theme that is repeated many times
Program- instructions that can be understood and followed
by a machine
Coding- Transforming actions into a symbolic language
Debugging- finding and fixing problems in code
Function- A piece of code that can be called over and over
Parameters- Extra bits of information that you can pass into
a function to customize it
Function- a piece of code that cab be called over and over
Function Call- The place in your program where you call a
function you have defined.

Notes
Function definition- the place where you assign a series of
actions to one easy-to-remember name
Variable- a placeholder for a value that can change
Conditional- A statement that is either true or false
depending on the situation
If statement- a line that determines whether or not you run
a certain chunk of code
Else- another way of saying otherwise
Increment-To add a certain amount once or many times
Decrement- To subtract a certain amount once or many
times
Nested statements- a statement inside another statements

Internet
DNS Table

www.miniclip.com

54.230.16.120

www.youtube.com

64.233.177.136

Agar.io

104.20.38.148

www.coolmath-games.com

www.google.com

www.adamborowiak.weebly.com

www.wikipedia.com

23.235.44.249

173.194.116.116

199.34.228.53

91.198.174.192

Notes
www.bing.com

www.yahoo.com

www.weebly.com

204.79.197.200

98.139.183.24

74.115.50.109

Ip (Internet Protocal)- An agreed upon set of requirements for


delivering packets across a network
IP Address- a number assigned to any item that is connected
to the internet
DNS (Domain Name service)- The service that translates
URLs to IP address
URL ( Universal Resource Locator) an easy-to-remember
address for calling a web page such as www.code.org
Internet- A group of computers and servers that are
networked together
Network- A group of things that are connected to each other
Packets- Small chunks of information that have been
carefully formed from larger chunks of information
Routing- Finding the best path through a network
Servers- Computers that exist only to provide information to
others
Fiber- Optic Cable- A cable that uses light to send information
Wi-fi- A wireless method of sending information using radio
waves
DSL/Cable- A method of sending information using telephone
or television cables

Notes

Four steps
Decompose Figure out the base problem and make it simpler
Patterns Common characteristics, similarities
Abstraction Minimalize the words needed to describe what
needs to be completed
Algorithm Creating a list of directions to get an objective
done or complete
Code
moveFoward();- means to move forward
turnright();- means to turn right
turnleft();-means to turn left
for (var count = 0; count < 2; count++) { go 2 spaces (repeat)
for (var count2 = 0; count2 < 3; count2++) { go 3 spaces (repeat)
moveForward();
while (notFinished()) { repeat until finished
if (isPathLeft()) { if theres a path to the left it will turn left
if (isPathRight()) { if theres a path to the right it will turn right
} else { it will do something If its not there
moveForward(100); go forward 100 pixels
turnRight(90); turn right 90 degrees
penColour('#0000cd'); change color
for (var count = 0; count < 4; count++) { repeat four times\
penColour(colour_random()); random color chossen

while (holePresent()) { it will fill hole if hole present


if (pilePresent()) { it will remove pile if pile present
// draw_a_square

Notes
var counter;
for (counter = 25; counter <= 60; counter += 5) {

var distance = distances[counter < 3 ? counter: 5 - counter] / 57.5;


for (var degree = 0; degree < 90; degree++) {
moveForward(distance); it will move forward X distance
turnRight(2); It will turn right

var distance = distances[counter < 3 ? counter: 5 - counter] / 57.5;


for (var degree = 0; degree < 90; degree++) {
moveForward(distance);
turnRight(2);

fill(); it will fill the hole

fill();

Notes

dig(); it will dig up the hole

for (var count = 0; count < 3; count++) {

// draw_a_snowman

turnLeft(90);

var distances = [(150) * 0.5, (150) * 0.3,(150) * 0.2];

for (var counter = 0; counter < 6; counter++) {

var distance = distances[counter < 3 ? counter: 5 - counter] / 57.5;

for (var degree = 0; degree < 90; degree++) {

moveForward(distance);

turnRight(2);

Notes

}
if (counter != 2) {

turnLeft(180);

var counter;

for (counter = 110; counter >= 70; counter -= 10) {

// draw_a_snowman

turnLeft(90);

var distances = [(counter) * 0.5, (counter) * 0.3,(counter) * 0.2];

for (var counter2 = 0; counter2 < 6; counter2++) {

var distance = distances[counter2 < 3 ? counter2: 5 - counter2] / 57.5;\

for (var degree = 0; degree < 90; degree++) {

Notes
for (var count = 0; count < 4; count++) {

while (isPathForward()) { it will move forward if path ahead

if (holePresent()) { it will fill in a hole

}
if (pilePresent()) { if pile present it will dig it up

function fill_5() {

function avoid_the_cow_and_remove_1() { it will avoid cow and remoce one

function remove_stack_of_4_piles() { it will remove stack of four piles

function draw_a_triangle() { it will draw a triangle

for (var count2 = 0; count2 < 3; count2++) {

moveForward(100); move forward 100 pixels

turnRight(120); turn right 120 degrees


}

Notes
function draw_a_square() { it will draw a square using the function draw a square

for (var count = 0; count < 4; count++) {


}
function draw_a_house() { it will draw a house using the function draw a house
draw_a_square();
moveForward(100);
turnRight(30);
draw_a_triangle();
}
getNectar();
if (nectarRemaining() == 1) {

Вам также может понравиться