26
Real World Programming BBrewer Fall 2013

Real World Programming BBrewer Fall 2013. Programming - Bellwork 1.Log on 2.Go to edmodo 3.Open & Save Vocabulary Graphic Organizer and Analaysis Document

Embed Size (px)

Citation preview

Page 1: Real World Programming BBrewer Fall 2013. Programming - Bellwork 1.Log on 2.Go to edmodo 3.Open & Save Vocabulary Graphic Organizer and Analaysis Document

Real World Programming

BBrewer Fall 2013

Page 2: Real World Programming BBrewer Fall 2013. Programming - Bellwork 1.Log on 2.Go to edmodo 3.Open & Save Vocabulary Graphic Organizer and Analaysis Document

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 BBrewer Fall 2013. Programming - Bellwork 1.Log on 2.Go to edmodo 3.Open & Save Vocabulary Graphic Organizer and Analaysis Document

Key Learning

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

is an essential programming practice.

Page 5: Real World Programming BBrewer Fall 2013. Programming - Bellwork 1.Log on 2.Go to edmodo 3.Open & Save Vocabulary Graphic Organizer and Analaysis Document

Unit Essential Question

What are the elements of a basic computer

program?

Page 6: Real World Programming BBrewer Fall 2013. Programming - Bellwork 1.Log on 2.Go to edmodo 3.Open & Save Vocabulary Graphic Organizer and Analaysis Document

Lesson Essential Question

How is a basic computer program

structured?

Page 7: Real World Programming BBrewer Fall 2013. Programming - Bellwork 1.Log on 2.Go to edmodo 3.Open & Save Vocabulary Graphic Organizer and Analaysis Document

Lesson Essential Question

What type of commands are used in a basic computer

program?

Page 8: Real World Programming BBrewer Fall 2013. Programming - Bellwork 1.Log on 2.Go to edmodo 3.Open & Save Vocabulary Graphic Organizer and Analaysis Document

Lesson Essential Question

How can I determine if there is an error in

the computer program?

Page 9: Real World Programming BBrewer Fall 2013. Programming - Bellwork 1.Log on 2.Go to edmodo 3.Open & Save Vocabulary Graphic Organizer and Analaysis Document

Vocabulary

Source CodeAlgorithmVariablesCommentsStringSyntaxDebuggerBugsIteration

ProgramBooleanFunctionConditionConstantLoopIf StatementsPseudocode

Page 10: Real World Programming BBrewer Fall 2013. Programming - Bellwork 1.Log on 2.Go to edmodo 3.Open & Save Vocabulary Graphic Organizer and Analaysis Document

Brainstorm: What do we program???

Page 11: Real World Programming BBrewer Fall 2013. Programming - Bellwork 1.Log on 2.Go to edmodo 3.Open & Save Vocabulary Graphic Organizer and Analaysis Document

Programmable Cars…

Page 12: Real World Programming BBrewer Fall 2013. Programming - Bellwork 1.Log on 2.Go to edmodo 3.Open & Save Vocabulary Graphic Organizer and Analaysis Document

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 BBrewer Fall 2013. Programming - Bellwork 1.Log on 2.Go to edmodo 3.Open & Save Vocabulary Graphic Organizer and Analaysis Document

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 BBrewer Fall 2013. Programming - Bellwork 1.Log on 2.Go to edmodo 3.Open & Save Vocabulary Graphic Organizer and Analaysis Document

Let’s Test your Theories…

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

Page 15: Real World Programming BBrewer Fall 2013. Programming - Bellwork 1.Log on 2.Go to edmodo 3.Open & Save Vocabulary Graphic Organizer and Analaysis Document

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

Page 16: Real World Programming BBrewer Fall 2013. Programming - Bellwork 1.Log on 2.Go to edmodo 3.Open & Save Vocabulary Graphic Organizer and Analaysis Document

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

Page 17: Real World Programming BBrewer Fall 2013. Programming - Bellwork 1.Log on 2.Go to edmodo 3.Open & Save Vocabulary Graphic Organizer and Analaysis Document

Source Code: text you type to write a program.

Page 18: Real World Programming BBrewer Fall 2013. Programming - Bellwork 1.Log on 2.Go to edmodo 3.Open & Save Vocabulary Graphic Organizer and Analaysis Document

Algorithm: Series of instructions to compute something.

Page 19: Real World Programming BBrewer Fall 2013. Programming - Bellwork 1.Log on 2.Go to edmodo 3.Open & Save Vocabulary Graphic Organizer and Analaysis Document

Pseudocode:Brief explanation of code in plain English

Page 20: Real World Programming BBrewer Fall 2013. Programming - Bellwork 1.Log on 2.Go to edmodo 3.Open & Save Vocabulary Graphic Organizer and Analaysis Document

Comments:Part of code that explains the process.

Page 21: Real World Programming BBrewer Fall 2013. Programming - Bellwork 1.Log on 2.Go to edmodo 3.Open & Save Vocabulary Graphic Organizer and Analaysis Document

String:Values made up of text.

Page 22: Real World Programming BBrewer Fall 2013. Programming - Bellwork 1.Log on 2.Go to edmodo 3.Open & Save Vocabulary Graphic Organizer and Analaysis Document

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

Page 23: Real World Programming BBrewer Fall 2013. Programming - Bellwork 1.Log on 2.Go to edmodo 3.Open & Save Vocabulary Graphic Organizer and Analaysis Document

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 BBrewer Fall 2013. Programming - Bellwork 1.Log on 2.Go to edmodo 3.Open & Save Vocabulary Graphic Organizer and Analaysis Document

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 BBrewer Fall 2013. Programming - Bellwork 1.Log on 2.Go to edmodo 3.Open & Save Vocabulary Graphic Organizer and Analaysis Document

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 BBrewer Fall 2013. Programming - Bellwork 1.Log on 2.Go to edmodo 3.Open & Save Vocabulary Graphic Organizer and Analaysis Document

Karel the Dog…

CodeHS.com

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