Marchewka-Computer Science Notes
Marchewka-Computer Science Notes
Stage 9 maze
moveForward();
moveForward();
turnRight();
for (var count = 0; count < 3; count++) {
moveForward();
}
This code showed a command to a computer or a person, it tells you what you need
to do.
while (notFinished()) {
moveForward();
turnLeft();
moveForward();
turnRight();
}
while (notFinished()) {
moveForward();
if (isPathLeft()) {
turnLeft();
}
}
penColour(colour_random());
for (var count = 0; count < 8; count++) {
moveForward(100);
moveBackward(100);
turnRight(45);
}
This is used to repeat 8 times for shape with a lot of lines.
The artist
penColour('#ff0000');
moveForward(100);
turnRight(90);
moveForward(100);
turnRight(90);
moveForward(100);
turnRight(90);
moveForward(100);
this code shows when to turn and how many degrees to turn, also by how far you
go.
This shows to move forward by 20 spaces and take a right by repeating 4 times
language:
for (var count3 = 0; count3 < 4; count3++) {
for (var count2 = 0; count2 < 10; count2++) {
penColour(colour_random());
for (var count = 0; count < 4; count++) {
moveForward(20);
turnRight(90);
}
moveForward(20);
}
turnRight(80);
}
This code shoes what degrees an angle would be
}
This shows to go forward and turn right by 100 pixels on a repeat block.
function remove_7() {
for (var count2 = 0; count2 < 7; count2++) {
dig();
}
}
function fill_5() {
for (var count3 = 0; count3 < 5; count3++) {
fill();
}
}
Internet protocol-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.
Domain name service- the service that translates urls to its ip address.
Universal resource locator- an easy to address for calling a web page.
AGAR.IO
104.20.38.148
CODE.ORG
54.192.19.34
COOLMATH.COM
EBAY.COM
AMAZON.COM
Youtube.com
Dell.com
23.235.33.129
66.211.185.25
54.239.25.200
173.194.112.99
143.166.147.101
Apple.com
Walmart.com
Ericmarchewka.weebly.com
moveWest();
moveSouth();
moveSouth();
moveEast();
moveNorth();
function remove_stack_of_4_piles() {
turnLeft();
for (var count2 = 0; count2 < 4; count2++) {
dig();
17.172.224.47
161.170.244.2
199.34.228.53
moveForward();
}
turnRight();
moveForward();
turnRight();
for (var count3 = 0; count3 < 4; count3++) {
moveForward();
}
turnLeft();
}
var length2;
function draw_a_triangle(length2) {
for (var count = 0; count < 3; count++) {
turnRight(120);
moveForward(length2);
}
}
function draw_a_square(length2) {
for (var count2 = 0; count2 < 4; count2++) {
moveForward(length2);
turnRight(90);
}
}
moveForward();
turnLeft();
moveForward();
turnRight();
moveForward();
moveForward(100);
turnRight(90);
moveForward(100);
turnLeft(45);
moveForward(100);
turnLeft(90);
moveForward(100);
turnLeft(90);
moveForward(100);
turnLeft(90);
moveForward(100);
turnLeft(60);
moveForward(100);
turnRight(120);
moveForward(100);
turnRight(60);
moveForward(100);
turnRight(120);
moveForward(100);
moveForward();
getNectar();
turnRight();
moveForward();
turnLeft();
moveForward();
getNectar();
moveForward();
turnRight();
for (var count = 0; count < 4; count++) {
moveForward();
}
turnLeft();
for (var count2 = 0; count2 < 4; count2++) {
moveForward();
}
turnLeft();
for (var count3 = 0; count3 < 4; count3++) {
moveForward();
}