Latest

Flow Control Structures Reveiw:For Ms. Schron’s class

Flow Control Structures: The programmer’s tools to get a computer to do something or take a specific action. There are three flow control structures in programming: sequence, conditions, and loops.

Sequence  Also called order of events.Sequence is the order you write your code in.

Loops Refers to repeating of a line of code written. In Scratch think of the Repeat button or Forever Button that allows you to write one line of code repeat it many times.

Conditional – The “if you do this, then this happens” statements in code. “if the user types his password then he gets into the website. In Scratch, if you press the flag then the Sprite does something.

Algorithm

Set of Steps in a specific order not necessarily in computer code to complete a task

Here are a set of online flash cards to study the definitions of these coding terms.

Click here for Flash Cards

http://www.cram.com/flashcards/coding-terms-9529257

SEQUENCE DEMAND THAT THE CODE BE EXECUTED EXACTLY AS WRITTEN IN THE SAME ORDER

COMPARE THESE TWO CODES. 

ANSWER THE QUESTION DO THEY HAVE ALL THE SAME BLOCKS? ARE THEY IN THE SAME ORDER? DO YOU THINK THE OUTCOME OF THE EXECUTED CODE WILL BE THE SAME?

IF YOU SAID NO YOU WOULD BE RIGHT.

 

Flowcab on “Events” In code.

Lets Kahoot  Here

What is an Event? Flowcab answers this question nicely!  https://www.flocabulary.com/unit/coding-events/vocab/

Event

noun – an action that causes something else to happen in a computer program.

The video paused in response to the event of me pressing the spacebar.

Action (noun) something performed by a user that causes a program to respond.

The action of me clicking the icon caused the program to launch.

Event handler (noun) a bit of code that listens for a discrete event and executes a given reaction when the event occurs.

The event handler makes my character jump when I press the m key. In pseudocode, it reads “when m pressed, character jumps.”

Interactive (adjective) allowing two-way communication between a computer and a person.

Most computer games are highly interactive.

Sequencing Review and Kahoot!

LET’S KAHOOT!

Sequence:

Sequence is important in code. A sequence is also called Order of Events.

Remember Computers always read from top to bottom. Right to left.

SEQUENCE DEMAND THAT THE CODE BE EXECUTED EXACTLY AS WRITTEN IN THE SAME ORDER

COMPARE THESE TWO CODES. 

ANSWER THE QUESTION DO THEY HAVE ALL THE SAME BLOCKS? ARE THEY IN THE SAME ORDER? DO YOU THINK THE OUTCOME OF THE EXECUTED CODE WILL BE THE SAME?

IF YOU SAID NO YOU WOULD BE RIGHT.

This refers to the order in which you write the code. Order of events is important in code. If you change the order of events then you change the code. Think about in Scratchjr if you are writing a code for a Sprite to change color and grow bigger. The order you write it in is important.  If you tell the sprite to grow bigger first then that is the first thing that will happen if you write code for it to change color then that order in which thing will happen.

Algorithms are a set of logical steps in a certain order to complete a task. Algorithms do not need to steps written in code. 2+2=4 is an algorithm. A set of steps to make a sandwich is also an algorithm.

If you change the order you change the outcome.Sometimes if you change the order the program will not run at all.

  1. Sequence: Also known as the order of events, commands that are executed by a computer exactly as they are written. The sequence must be in the correct order for the program to run properly.
  2. Flow Control Structures: The programmer’s means of influencing a computer program’s decision-making process and movements. There are three flow control structures in programming: sequence, conditions, and loops.
  3. Command: A specific instruction given to a computer in written code from a programmer.
  4. Code: The language written by humans to communicate with computers to complete a process; programming language that gives instructions to a computer.
  5. Computer: A device for storing and processing information, responds to instructions in programming language that is written by humans.
  6. Computer Science: The study of computers.
  7. Internet: An electronic communications network that connects computer networks around the world.
  8. Program: A sequence of instructions written in a code that a computer can interpret and execute.
  9. Programmer: A person who writes code and communicates instructions to a computer.
  10. Robot: A device that sometimes resembles a human and can be programmed to carry out complex tasks.
  11. Algorithm: A sequence of logical instructions or steps needed to finish a task. Can be performed with or without a computer.
  12. Pseudocode: An informal method of writing an algorithm for a computer program using English and not code. Used for planning and is intended for humans to read it, not computers.
  13. Syntax: The spelling and grammar of a programming language.
  14. Bugs: Errors, or mistakes, in the syntax of a programming language.
  15. Debugging: The process of finding and fixing errors (bugs) in the syntax so the computer program will run properly.
  16. Technology: The use of science to solve problems and invent. A machine, piece of equipment, idea, or method that is carried out by human communicating with machines

Sequencing update and Kahoot for Ms. Dimeo’s class

Sequence:

Sequence is important in code. Sequence is also called Order of Events.

Remember Computers always read from top to bottom. Right to left.

This refers to the order in which you write the code. Order of events is important in code. If you change the order of events then you change the code. Think about in Scratchjr if you are writing a code for a Sprite to change color and grow bigger. The order you write it in is important.  If you tell the sprite to grow bigger first then that is the first thing that will happen if you write code for it to change color then that order in which thing will happen.

Algorithms are a set of logical steps in a certain order to complete a task.

If you change the order you change the outcome.Sometimes if you change the order the program will not run at all.

  1. Sequence: Also known as the order of events, commands that are executed by a computer exactly as they are written. The sequence must be in the correct order for the program to run properly.
  2. Flow Control Structures: The programmer’s means of influencing a computer program’s decision-making process and movements. There are three flow control structures in programming: sequence, conditions, and loops.
  3. Command: A specific instruction given to a computer in written code from a programmer.
  4. Code: The language written by humans to communicate with computers to complete a process; programming language that gives instructions to a computer.
  5. Computer: A device for storing and processing information, responds to instructions in programming language that is written by humans.
  6. Computer Science: The study of computers.
  7. Internet: An electronic communications network that connects computer networks around the world.
  8. Program: A sequence of instructions written in a code that a computer can interpret and execute.
  9. Programmer: A person who writes code and communicates instructions to a computer.
  10. Robot: A device that sometimes resembles a human and can be programmed to carry out complex tasks.
  11. Algorithm: A sequence of logical instructions or steps needed to finish a task. Can be performed with or without a computer.
  12. Pseudocode: An informal method of writing an algorithm for a computer program using English and not code. Used for planning and is intended for humans to read it, not computers.
  13. Syntax: The spelling and grammar of a programming language.
  14. Bugs: Errors, or mistakes, in the syntax of a programming language.
  15. Debugging: The process of finding and fixing errors (bugs) in the syntax so the computer program will run properly.
  16. Technology: The use of science to solve problems and invent. A machine, piece of equipment, idea, or method that is carried out by human communicating with machines.

Sequencing For Ms. Jen’s Class

 Kodable Login

Sequence:

Sequence is important in code. Sequence is also called Order of Events.

This refers to the order in which you write the code. Order of events is important in code. If you change the order of events then you change the code. Think about in Scratchjr if you are writing a code for a Sprite to change color and grow bigger. The order you write it in is important.  If you tell the sprite to grow bigger first then that is the first thing that will happen if you write code for it to change color then that order in which thing will happen.

Algorithms are a set of logical steps in a certain order to complete a task.

If you change the order you change the outcome.Sometimes if you change the order the program will not run at all.

  1. Sequence: Also known as the order of events, commands that are executed by a computer exactly as they are written. The sequence must be in the correct order for the program to run properly.
  2. Flow Control Structures: The programmer’s means of influencing a computer program’s decision-making process and movements. There are three flow control structures in programming: sequence, conditions, and loops.
  3. Command: A specific instruction given to a computer in written code from a programmer.
  4. Code: The language written by humans to communicate with computers to complete a process; programming language that gives instructions to a computer.
  5. Computer: A device for storing and processing information, responds to instructions in programming language that is written by humans.
  6. Computer Science: The study of computers.
  7. Internet: An electronic communications network that connects computer networks around the world.
  8. Program: A sequence of instructions written in a code that a computer can interpret and execute.
  9. Programmer: A person who writes code and communicates instructions to a computer.
  10. Robot: A device that sometimes resembles a human and can be programmed to carry out complex tasks.
  11. Algorithm: A sequence of logical instructions or steps needed to finish a task. Can be performed with or without a computer.
  12. Pseudocode: An informal method of writing an algorithm for a computer program using English and not code. Used for planning and is intended for humans to read it, not computers.
  13. Syntax: The spelling and grammar of a programming language.
  14. Bugs: Errors, or mistakes, in the syntax of a programming language.
  15. Debugging: The process of finding and fixing errors (bugs) in the syntax so the computer program will run properly.
  16. Technology: The use of science to solve problems and invent. A machine, piece of equipment, idea, or method that is carried out by human communicating with machines.

Ms Creamer’s Class

How to change color of a Sprite Using Draw

Click on Costumes and open up draw. Then:

Go to this link and put an image in with background then take the background out using the color fill tools.

https://scratch.mit.edu/projects/177224273/#editor

Result:

Also search for an image with out a background  using the png at the end of your search terms.

For example:

Hearts png

Kodables Lesson in Sequence – a Little break from SCRATCH

 Kodable Login here

 

Flow Control Structures

In computer programming, flow control structures are the programmer’s means of influencing a computer program’s decision-making process and movements, ultimately altering the computer’s adventure. In programming, sequence is the first of three basic flow control structures.

Programming Flow Control Structures:

  1. Conditions
  2. Loops

What is Sequence?

Sequence is the very first concept a student must understand when learning to code. Also known as order of events, a computer will execute commands exactly in the order or sequence they are written. As a programmer, it is important to make sure that the commands given to a computer are in the right sequence, otherwise a program might not run as expected.

Sequence in Programming:

When learning sequence, it is first important to understand how a computer reads and translates code. Remember the brilliant Choose Your Own Adventure series? Interestingly, a computer reads code the exact same way that we would read a Choose Your Own Adventure game book.

If you elect to walk into the cave, turn to page 24.
If you want to open the mysterious door, turn to page 77.
 If you choose to enter the forbidden wilderness, turn to page 90.”

A computer program translates code just as humans read written text: line- by-line, top to bottom, and left to right. However, when a computer interprets code, it is making a string of decisions that influence the flow of code, or the path that a program takes.

Like a reading a Choose Your Own Adventure game book, a computer program is constantly making decisions along its journey that send the computer backwards, forwards, and in circles. A programmer orchestrates all of these movements and decisions, ensuring the successful execution of the program.

Sequence and Algorithms

What is an Algorithm?

An algorithm is a sequence of logical instructions or steps needed to finish a task. An algorithm can be performed with or without a computer.

In programming, an algorithm is required in a sequence queue. Sequence is important in a computer algorithm because the correct order of steps is needed in order to make the algorithm work.

Coding an Algorithm: Pseudocode

Computers are not as smart as humans and need very specific instructions to perform a task. Providing instructions to a computer is completely different from giving the same instructions to another person.

Pseudocode is an informal method of writing an algorithm for a computer program using plain English. Primarily used for planning, pseudocode uses the structural conventions of a programming language, but is intended for human reading rather than machine reading. Pseudocode serves as a middle step between human-speech and computer code, helping programmers translate written algorithms.

Sequence Vocabulary

Terms and Definitions

  1. Sequence: Also known as the order of events, commands that are executed by a computer exactly as they are written. The sequence must be in the correct order for the program to run properly.
  2. Flow Control Structures: The programmer’s means of influencing a computer program’s decision-making process and movements. There are three flow control structures in programming: sequence, conditions, and loops.
  3. Command: A specific instruction given to a computer in written code from a programmer.
  4. Code: The language written by humans to communicate with computers to complete a process; programming language that gives instructions to a computer.
  5. Computer: A device for storing and processing information, responds to instructions in programming language that is written by humans.
  6. Computer Science: The study of computers.
  7. Internet: An electronic communications network that connects computer networks around the world.
  8. Program: A sequence of instructions written in a code that a computer can interpret and execute.
  9. Programmer: A person who writes code and communicates instructions to a computer.
  10. Robot: A device that sometimes resembles a human and can be programmed to carry out complex tasks.
  11. Algorithm: A sequence of logical instructions or steps needed to finish a task. Can be performed with or without a computer.
  12. Pseudocode: An informal method of writing an algorithm for a computer program using English and not code. Used for planning and is intended for humans to read it, not computers.
  13. Syntax: The spelling and grammar of a programming language.
  14. Bugs: Errors, or mistakes, in the syntax of a programming language.
  15. Debugging: The process of finding and fixing errors (bugs) in the syntax so the computer program will run properly.
  16. Technology: The use of science to solve problems and invent. A machine, piece of equipment, idea, or method that is carried out by human communicating with machines.