U3L4 Using Simple Commands

Slides:



Advertisements
Similar presentations
CS 101: Arrays Abhiram Ranade. Computers manipulate many objects Given the position, masses, and velocities of all stars, where will they be after the.
Advertisements

AP Computer Science Principles Data Abstraction and Procedural Abstraction Curriculum Module.
Abstraction IS 101Y/CMSC 101 Computational Thinking and Design Tuesday, September 17, 2013 Marie desJardins University of Maryland, Baltimore County.
CS221 Algorithm Basics. What is an algorithm? An algorithm is a list of instructions that transform input information into a desired output. Each instruction.
Flowchart. a diagram of the sequence of movements or actions of people or things involved in a complex system or activity. a graphical representation.
AP Computer Science Principals Course Importance and Overview
Victory Lutheran college
AP CSP: Creating Functions & Top-Down Design
The Need for Algorithms
Creativity of Algorithms & Simple JavaScript Commands
JavaScript/ App Lab Programming:
Vocabulary byte - The technical term for 8 bits of data.
Canvas and Arrays in Apps
Vocabulary byte - The technical term for 8 bits of data.
Introduction: Computer programming
AP CSP: The Need for Programming Languages and Algorithms
Vocabulary Algorithm - A precise sequence of instructions for processes that can be executed by a computer Low level programming language: A programming.
High or Low Level Programming Language? Justify your decision.
AP Computer Science Principles
Unit 3: Lesson 1 - The Need for Programming Languages
Vocabulary byte - The technical term for 8 bits of data.
Friday 9/15/17 Notebook Entry: Think about how your group worked together to design and build your boat. What do you think went well? What do you think.
Vocabulary byte - The technical term for 8 bits of data.
Do it now activity Last lesson we used Flowol to create a solution to a problem a computer could solve. Identify what each symbol does:
Unit 3 Lesson 4 & 5- Programming With Simple Commands / Creating Functions Day 26.
Creating Functions with Parameters
Lesson 5-2 AP Computer Science Principles
Unit 3 lesson 2&3 The Need For Algorithms- Creativity in Algorithms
Creativity in Algorithms
CS101 Introduction to Computing Lecture 19 Programming Languages
Stage 11: Artist: Nested Loops
The Binary Number System
How We Think Of Computers
Vocabulary byte - The technical term for 8 bits of data.
CS Principles U2L3 Encoding B&W Images.
The Need for Programming Languages
Introduction to Programmng in Python
The Need for Algorithms 2 days
AP Computer Science Principals Course Importance and Overview
Vocabulary byte - The technical term for 8 bits of data.
Vocabulary Algorithm - A precise sequence of instructions for processes that can be executed by a computer.
Foundations of Programming: Introduction to Programming
Algorithm and Ambiguity
Foundations of Computer Science
Loops and Switches Pre-Quiz
Today Is S.T.E.M. Day.
Programming.
Creativity in Algorithms
Lesson 16: Functions with Return Values
Lesson 15: Processing Arrays
UNIT 3 CHAPTER 1 LESSON 4 Using Simple Commands.
Creating Functions with Parameters
HAPPY NEW YEAR! Lesson 7: If-statements unplugged
Computational Thinking for KS3
Welcome! Martin Norris Year 5 Class Teacher & Computing
Algorithm and Ambiguity
Training & Development
Click to add Text Computers & Instructions. Computers are given instructions in the form of computer programs that are created through the development.
Unit 3 lesson 2-5 The Need For Algorithms- Creativity in Algorithms – Simple Commands - Functions Day 18.
AP Computer Science Principals Course Importance and Overview
U3L1 The Need For Programming
Unit 3: Lesson 1 - The Need for Programming Languages
Vocabulary Algorithm - A precise sequence of instructions for processes that can be executed by a computer Low level programming language: A programming.
Vocabulary Big Data - “Big data is a broad term for datasets so large or complex that traditional data processing applications are inadequate.” Moore’s.
Stop and Think The QEP at LFCC: What you need to know.
Loops and Switches How Do You Make Loops and Switches? lesson > TeachEngineering.org Center for Computational Neurobiology, University of Missouri.
U2L6 Rapid Research – Format Showdown
U3L2 The Need For Algorithms
U3L8 Creating Functions with Parameters
Digital Literacies for learning
Presentation transcript:

U3L4 Using Simple Commands CS Principles U3L4 Using Simple Commands

U3L4 Using Simple Commands Objectives SWBAT: Solve simple programming challenges when the set of allowed commands is constrained. Explain considerations that go into “efficiency” of a program. Use App Lab to write programs that create simple drawings with “turtle graphics.” Work with a partner to program a turtle task that requires about 50 lines of code. Justify or explain choices made when programming a solution to a turtle task.

Unit 3 Programming We are about to start a unit on computer programming, in which you will write instructions for a computer to execute. Computers are machines. So if we invent an instruction or command for a computer to execute, then it should be unambiguous how the computer will interpret or attempt to execute that instruction; at the very least we can expect that the machine’s behavior is repeatable, so we can run some tests until we understand what the computer is doing and why. So then the challenge - and fun - of programming at its core, is understanding how to use and combine those machine instructions to make the computer do what you want, or to solve a problem.

U3L4 Content: Using Simple Commands By stripping down the available commands to only a few, these constraints force you to think about the most efficient way to solve the problem and come up with creative ways of doing it. A reason to learn this way is because at its core, a computer can really only do a few simple things: load a number from memory, store a number in memory, add two numbers together, etc. Everything the computer can do is the result of combining these simple instructions to do more and more sophisticated things. Students in this class will embark on a similar journey, building up complexity from only a few primitive sets of commands. As students are presented with increasingly complex tasks, we will progressively expose more commands as a matter of convenience. Big picture: when programming at any level of expertise you are always limited by the constraints of the programming language you choose to use. Whether the language gives you thousands of commands and libraries with which to control various things or only a few, you always have to use those as building blocks to get the computer to do what you want.

U3L3 Prompt “We have been preparing to learn how to program by doing some activities with LEGO® and playing cards. Today we will start programming for “real.” Prompt: Thinking back to the algorithms activities what do you anticipate will be the same about those activities vs. the ‘real’ thing?”

Prompt Discussion: Some things that will be the same to key in on: Focus on creating processes to do things Multiple ways to solve a problem Some struggles understanding exactly what commands mean Working with partners Reasoning about solutions by testing them repeatedly, acting them out Creatively applying the limited set of commands.

U3L4 Vocab: 4 Turtle Commands moveForward – move the turtle forward a predefined amount of units turnLeft – turn left 90 degrees penUp – pick the pen up (stop drawing when the turtle moves) penDown - put the pen down (resume drawing when the turtle moves)

U3L4 Activity on Code Studio Watch the video (as a class) and begin code studio activities.

U3L4 Reflection Respond to the following prompt in your notebooks. Thought Prompt: What does “efficiency” mean when programming? What is the “most efficient” way to program the solution for the 3x3 grid?