Programming for Absolute Beginners Part 1 . It's fun . Don't worry about learning a language . Let's get the fundamentals and the basics right Don't worry about learning a language Prerequisites: you should know how to turn on a computer (tribute to Prof. Mehran Sahami) - Programming Methodology Course
we won't focus on one particular programming language - but we will go with C++ and use an online platform
05 programming is an "ART" - the "ART" of making stuff possible by writing a code think of code or a programming language as colors and pastel whereas your final program is the painting programming can make magic happen:)
what were the tasks of the first few computers invented? To perform basic calculations and then later on advanced calculations
So think about what you want to build - and let's begin with a basic calculator This calculator adds two numbers that the user is going to give it. So programming is that art by which you're going to build this . So programming is that art by which you're going to build this cool calculator and it's super easy!!!
Now let's think about our program - "Calculator" . What will it do? How will it do it? Don't worry about the syntax. Don't worryabout one particular programming language . Don't worry about the syntax. Don't worry about one particular
The user enters two numbers and the calculator prints the sum of these two numbers.
What do you need? . o A place to store the first number that user will enter o A place to store the second number that user will enter o A place to store the sum of these two numbers Display on screen the sum which was stored
Let's learn some commands e InputANumber * DisplayANumbern o This command takes a parameter - it's need something basically to do what's it's supposed to do
Introducing variables . It's a box! That's it . And what does a box do? . And how will you differentiate boxes? o firstNumber=6 o secondNumbei . Whoa whoa whoa=??? = 12 o Assignment operator WHAAAAT! o Assigns the value on the right to left.