From 578b7352915e5658ef43526d36be0898e7c8fcff Mon Sep 17 00:00:00 2001 From: Eric Douglas Date: Thu, 8 May 2014 20:49:39 -0300 Subject: [PATCH] add class 01.01.02 --- README.md | 2 ++ .../UNIT-01/02-core-elements-of-a-program/README.md | 13 +++++++++++++ .../02-core-elements-of-a-program/example.js | 3 +++ 3 files changed, 18 insertions(+) create mode 100644 archives/01-introduction-to-computer-science-and-programming/archives/UNIT-01/02-core-elements-of-a-program/README.md create mode 100644 archives/01-introduction-to-computer-science-and-programming/archives/UNIT-01/02-core-elements-of-a-program/example.js diff --git a/README.md b/README.md index 5360e7b..45988b5 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ **Files of my self-taught studies on MIT Open Courseware - Computer Science and Engineering** +> I'm doing the "Computer Science and Engineering" course with the MIT open courseware. In this linear approach (one course at time), I will do all exercises in the "official" programming language taught in the course, and also with JavaScript (Node.JS to be more especific). + ## Basic Roadmap This roadmap was made upon [this](http://www.eecs.mit.edu/academics-admissions/undergraduate-programs/course-6-3-computer-science-and-engineering) flow chart of [this](http://www.eecs.mit.edu/academics-admissions/undergraduate-programs/course-6-3-computer-science-and-engineering) course. diff --git a/archives/01-introduction-to-computer-science-and-programming/archives/UNIT-01/02-core-elements-of-a-program/README.md b/archives/01-introduction-to-computer-science-and-programming/archives/UNIT-01/02-core-elements-of-a-program/README.md new file mode 100644 index 0000000..6aad8bb --- /dev/null +++ b/archives/01-introduction-to-computer-science-and-programming/archives/UNIT-01/02-core-elements-of-a-program/README.md @@ -0,0 +1,13 @@ +# Core Elements of a Program + +This lecture covers the building blocks of straight line and branching programs: objects, types, operators, variables, execution, and conditional statements. + +## Session Activities + +➭ [Lecture 2: Core Elements of a Program](http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-00sc-introduction-to-computer-science-and-programming-spring-2011/unit-1/lecture-2-core-elements-of-a-program/#?w=535) (00:49:49) + +➭ **About this Video**: Topics covered: IDLE, types of objects, operators, overloading, commands, variables, assignment, input, straight line and branching programs, looping constructs, Turing completeness, conditionals, nesting. + +➭ **Resources** + +[Code in Node.JS]() | [Code in Python]() diff --git a/archives/01-introduction-to-computer-science-and-programming/archives/UNIT-01/02-core-elements-of-a-program/example.js b/archives/01-introduction-to-computer-science-and-programming/archives/UNIT-01/02-core-elements-of-a-program/example.js new file mode 100644 index 0000000..e6b2bd8 --- /dev/null +++ b/archives/01-introduction-to-computer-science-and-programming/archives/UNIT-01/02-core-elements-of-a-program/example.js @@ -0,0 +1,3 @@ +x = 3; // Create variable and assign value 3 to it +x = x * x; // Bind x to value 9 +console.log( x ); // print the x's value