real world programming
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 PresentationTRANSCRIPT
Real World Programming
BBrewer Fall 2013
Programming - Bellwork
1. Log on
2. Go to edmodo
3. Open & Save Vocabulary Graphic Organizer and Analaysis Document
4. Keep edmodo OPEN – just minimize
Programming - Activator
Superpower Video!
http://www.youtube.com/watch?v=dU1xS07N-FA&edufilter=oSb3mzqNjRLVa-k_WUo0PA&safe=active
Key Learning
Knowing how to read a computer program and translate it into English
is an essential programming practice.
Unit Essential Question
What are the elements of a basic computer
program?
Lesson Essential Question
How is a basic computer program
structured?
Lesson Essential Question
What type of commands are used in a basic computer
program?
Lesson Essential Question
How can I determine if there is an error in
the computer program?
Vocabulary
Source CodeAlgorithmVariablesCommentsStringSyntaxDebuggerBugsIteration
ProgramBooleanFunctionConditionConstantLoopIf StatementsPseudocode
Brainstorm: What do we program???
Programmable Cars…
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
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>
Let’s Test your Theories…
http://www.w3schools.com/js/tryit.asp?filename=tryjs_confirm
Program:Collection of instructions that can process input and produce output when run by a computer.
Syntax:Rules of how code is ordered in programming language.
Source Code: text you type to write a program.
Algorithm: Series of instructions to compute something.
Pseudocode:Brief explanation of code in plain English
Comments:Part of code that explains the process.
String:Values made up of text.
If Statement:code that asks questions which are only run by the computer if the statement is true.
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.
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.
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.
Karel the Dog…
CodeHS.com
Sign Up! IndividualUse ‘home’ email – write in class folder!Password – write in class folder!