Real World Programming
description
Transcript of Real World Programming
![Page 1: Real World Programming](https://reader035.fdocuments.us/reader035/viewer/2022081513/5681515b550346895dbf7fcb/html5/thumbnails/1.jpg)
Real World Programming
BBrewer Fall 2013
![Page 2: Real World Programming](https://reader035.fdocuments.us/reader035/viewer/2022081513/5681515b550346895dbf7fcb/html5/thumbnails/2.jpg)
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 3: Real World Programming](https://reader035.fdocuments.us/reader035/viewer/2022081513/5681515b550346895dbf7fcb/html5/thumbnails/3.jpg)
Programming - Activator
Superpower Video!
http://www.youtube.com/watch?v=dU1xS07N-FA&edufilter=oSb3mzqNjRLVa-k_WUo0PA&safe=active
![Page 4: Real World Programming](https://reader035.fdocuments.us/reader035/viewer/2022081513/5681515b550346895dbf7fcb/html5/thumbnails/4.jpg)
Key Learning
Knowing how to read a computer program and translate it into English
is an essential programming practice.
![Page 5: Real World Programming](https://reader035.fdocuments.us/reader035/viewer/2022081513/5681515b550346895dbf7fcb/html5/thumbnails/5.jpg)
Unit Essential Question
What are the elements of a basic computer
program?
![Page 6: Real World Programming](https://reader035.fdocuments.us/reader035/viewer/2022081513/5681515b550346895dbf7fcb/html5/thumbnails/6.jpg)
Lesson Essential Question
How is a basic computer program
structured?
![Page 7: Real World Programming](https://reader035.fdocuments.us/reader035/viewer/2022081513/5681515b550346895dbf7fcb/html5/thumbnails/7.jpg)
Lesson Essential Question
What type of commands are used in a basic computer
program?
![Page 8: Real World Programming](https://reader035.fdocuments.us/reader035/viewer/2022081513/5681515b550346895dbf7fcb/html5/thumbnails/8.jpg)
Lesson Essential Question
How can I determine if there is an error in
the computer program?
![Page 9: Real World Programming](https://reader035.fdocuments.us/reader035/viewer/2022081513/5681515b550346895dbf7fcb/html5/thumbnails/9.jpg)
Vocabulary
Source CodeAlgorithmVariablesCommentsStringSyntaxDebuggerBugsIteration
ProgramBooleanFunctionConditionConstantLoopIf StatementsPseudocode
![Page 10: Real World Programming](https://reader035.fdocuments.us/reader035/viewer/2022081513/5681515b550346895dbf7fcb/html5/thumbnails/10.jpg)
Brainstorm: What do we program???
![Page 11: Real World Programming](https://reader035.fdocuments.us/reader035/viewer/2022081513/5681515b550346895dbf7fcb/html5/thumbnails/11.jpg)
Programmable Cars…
![Page 12: Real World Programming](https://reader035.fdocuments.us/reader035/viewer/2022081513/5681515b550346895dbf7fcb/html5/thumbnails/12.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022081513/5681515b550346895dbf7fcb/html5/thumbnails/13.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022081513/5681515b550346895dbf7fcb/html5/thumbnails/14.jpg)
Let’s Test your Theories…
http://www.w3schools.com/js/tryit.asp?filename=tryjs_confirm
![Page 15: Real World Programming](https://reader035.fdocuments.us/reader035/viewer/2022081513/5681515b550346895dbf7fcb/html5/thumbnails/15.jpg)
Program:Collection of instructions that can process input and produce output when run by a computer.
![Page 16: Real World Programming](https://reader035.fdocuments.us/reader035/viewer/2022081513/5681515b550346895dbf7fcb/html5/thumbnails/16.jpg)
Syntax:Rules of how code is ordered in programming language.
![Page 17: Real World Programming](https://reader035.fdocuments.us/reader035/viewer/2022081513/5681515b550346895dbf7fcb/html5/thumbnails/17.jpg)
Source Code: text you type to write a program.
![Page 18: Real World Programming](https://reader035.fdocuments.us/reader035/viewer/2022081513/5681515b550346895dbf7fcb/html5/thumbnails/18.jpg)
Algorithm: Series of instructions to compute something.
![Page 19: Real World Programming](https://reader035.fdocuments.us/reader035/viewer/2022081513/5681515b550346895dbf7fcb/html5/thumbnails/19.jpg)
Pseudocode:Brief explanation of code in plain English
![Page 20: Real World Programming](https://reader035.fdocuments.us/reader035/viewer/2022081513/5681515b550346895dbf7fcb/html5/thumbnails/20.jpg)
Comments:Part of code that explains the process.
![Page 21: Real World Programming](https://reader035.fdocuments.us/reader035/viewer/2022081513/5681515b550346895dbf7fcb/html5/thumbnails/21.jpg)
String:Values made up of text.
![Page 22: Real World Programming](https://reader035.fdocuments.us/reader035/viewer/2022081513/5681515b550346895dbf7fcb/html5/thumbnails/22.jpg)
If Statement:code that asks questions which are only run by the computer if the statement is true.
![Page 23: Real World Programming](https://reader035.fdocuments.us/reader035/viewer/2022081513/5681515b550346895dbf7fcb/html5/thumbnails/23.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022081513/5681515b550346895dbf7fcb/html5/thumbnails/24.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022081513/5681515b550346895dbf7fcb/html5/thumbnails/25.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022081513/5681515b550346895dbf7fcb/html5/thumbnails/26.jpg)
Karel the Dog…
CodeHS.com
Sign Up! IndividualUse ‘home’ email – write in class folder!Password – write in class folder!