real world programming

26
Real World Programming BBrewer Fall 2013

Upload: chip

Post on 22-Jan-2016

41 views

Category:

Documents


0 download

DESCRIPTION

Real World Programming. BBrewer Fall 2013. Programming - Bellwork. Log on Go to edmodo Open & Save Vocabulary Graphic Organizer and Analaysis Document Keep edmodo OPEN – just minimize. Programming - Activator. Superpower Video! - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Real World Programming

Real World Programming

BBrewer Fall 2013

Page 2: Real World Programming

Programming - Bellwork

1. Log on

2. Go to edmodo

3. Open & Save Vocabulary Graphic Organizer and Analaysis Document

4. Keep edmodo OPEN – just minimize

Page 4: Real World Programming

Key Learning

Knowing how to read a computer program and translate it into English

is an essential programming practice.

Page 5: Real World Programming

Unit Essential Question

What are the elements of a basic computer

program?

Page 6: Real World Programming

Lesson Essential Question

How is a basic computer program

structured?

Page 7: Real World Programming

Lesson Essential Question

What type of commands are used in a basic computer

program?

Page 8: Real World Programming

Lesson Essential Question

How can I determine if there is an error in

the computer program?

Page 9: Real World Programming

Vocabulary

Source CodeAlgorithmVariablesCommentsStringSyntaxDebuggerBugsIteration

ProgramBooleanFunctionConditionConstantLoopIf StatementsPseudocode

Page 10: Real World Programming

Brainstorm: What do we program???

Page 11: Real World Programming

Programmable Cars…

Page 12: Real World Programming

BellworkTo Be Turned In:

1. Polices and Procedures Powerpoint Bbrewer Shared Folder

2. Get to Know You Document Bbrewer Shared Folder

3. Quiz edmodo – Policies and Procedures

Page 13: Real World Programming

Activate…Can you translate in English???<!DOCTYPE html><html><body>

<p>Click the button to display a confirm box.</p>

<button onclick="myFunction()">Try it</button>

<p id="demo"></p>

<script>function myFunction(){var x;var r=confirm("Press a button!");if (r==true) { x="You pressed OK!"; }else { x="You pressed Cancel!"; }document.getElementById("demo").innerHTML=x;}</script>

</body></html>

Page 14: Real World Programming

Let’s Test your Theories…

http://www.w3schools.com/js/tryit.asp?filename=tryjs_confirm

Page 15: Real World Programming

Program:Collection of instructions that can process input and produce output when run by a computer.

Page 16: Real World Programming

Syntax:Rules of how code is ordered in programming language.

Page 17: Real World Programming

Source Code: text you type to write a program.

Page 18: Real World Programming

Algorithm: Series of instructions to compute something.

Page 19: Real World Programming

Pseudocode:Brief explanation of code in plain English

Page 20: Real World Programming

Comments:Part of code that explains the process.

Page 21: Real World Programming

String:Values made up of text.

Page 22: Real World Programming

If Statement:code that asks questions which are only run by the computer if the statement is true.

Page 23: Real World Programming

Summary

1. Compare and Contrast different types of code: Details, Patterns, Generalizations

2. Label Comments, Algorithms, If Statements

3. Write Pseudocode for one of the programs.

Page 24: Real World Programming

Bellwork - Vocabulary Review

1. Comments2. Algorithm3. Source

Code4. Syntax5. If

Statement6. String7. Program8. Pseudocod

e

• Collection of instructions that can process input and produce output when run by a computer.

• Rules of how code is ordered in programming language.

• Text you type to write a program.• Series of instructions to compute

something.• Brief explanation of code in plain English.• Part of code that explains the process.• Values made up of text.• Code that asks questions which are only

run by the computer is the statement is true.

Page 25: Real World Programming

Bellwork - Vocabulary Review

1. Comments2. Algorithm3. Source

Code4. Syntax5. If

Statement6. String7. Program8. Pseudocod

e

• Collection of instructions that can process input and produce output when run by a computer.

• Rules of how code is ordered in programming language.

• Text you type to write a program.• Series of instructions to compute

something.• Brief explanation of code in plain English.• Part of code that explains the process.• Values made up of text.• Code that asks questions which are only

run by the computer is the statement is true.

Page 26: Real World Programming

Karel the Dog…

CodeHS.com

Sign Up! IndividualUse ‘home’ email – write in class folder!Password – write in class folder!