Professional Documents
Culture Documents
1-Peterson-Computer Science Notes
1-Peterson-Computer Science Notes
1-Peterson-Computer Science Notes
solutions.
Data- Information including facts, samples, names and numbers.
Environment- The world we live in
Interface- the insides of a computer or parts
Open Source- Software available for free for anyone to use
Programming- Writing instructions for a digital tool.
Simulation- Pretending to be the real thing.
Encode- to put something into a coded form.
Decode- to take something out of code.
Computational Thinking- A method of problem solving that helps a computer
scientist prepare problems for digital solutions.
1. Decompose-figure out the problem
2. Patterns- common characteristics, similarities
3. Abstraction- minimalize the words needed to describe what
needs to be completed.
4. Algorithms- creating a list of directions to get the objective done.
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 Call- The place in your program where you call a function you have
defined
Function definition- The place where you assign a series of actions to one
easy-to-remember name.
Variable- A place holder for a value that can change.
situation.
If statement- A line that determines whether or not you run a 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 statement- A statement inside another statement.
addresses.
URL (Universal Resource Locator)-An easy-to-remember address for calling a
web page
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 if information that have been carefully formed from
DNS Table
Coolmath-games.com
Agar.io
Youtube.com
Google.com
Timpeterson1.weebly.com
23.235.33.129
104.20.39.148
216.58.217.142
74.125.21.113
199.34.228.54
Y115.org
50.201.131.254
Wikipedia.com
50.63.202.39
Bing.com
204.79.197.200
Yahoo.org
98.137.236.150
Amazon.com
54.239.25.208
Codes
moveForward(); moves the bird forward
turnRight(); makes the bird turn
turnLeft(); makes the bird turn
moveForward();
}
Makes the code repeat x amount of times doing whatever you put into the
code
Gray blocks cant be removed
while (notFinished()) {
moveForward();
This means that it wont stop doing what it is doing until it reaches the end
or the goal
if (isPathLeft()) {
this makes it so if it can turn left then it will turn left but if not it wont turn
while (notFinished()) {
if (isPathForward()) {
moveForward();
} else {
turnLeft();
This means that go forward unless you cant then it will turn left
// draw_a_square
moveForward((50));
turnRight(90);
This makes you make a square in a shorter space
var counter;
This makes you use the counter block that makes it easiesr to repeat
// draw_a_snowman
jumpForward(100);
function fill_5() {
for (var count = 0; count < 5; count++) {
fill();
}
}
moveForward();
fill_5();
var length2;
function draw_a_square(length2) {
for (var count = 0; count < 4; count++) {
moveForward(length2);
turnRight(90);
}
}
function draw_a_triangle(length2) {
for (var count2 = 0; count2 < 3; count2++) {
moveForward(length2);
turnRight(120);
}
}
This is a parameter, that make it so you can make different sized triangles
if (nectarRemaining() > 0) {
getNectar();
}
This makes it so that if there is more than 0 nectar it wwll remove until it is
less than 0.
https://studio.code.org/c/123684418 my game