Lesson Plan - Introduction To Programming and C++
Lesson Plan - Introduction To Programming and C++
Introduction to Programming
and C++
List of Concepts Involved:
• What is Programming?
• Why do we need Programming?
• Types of Programming Languages
• Introduction to C++
• Difference between C and C++
To know and accomplish more of such interesting things , let's now move to the learning part of programming
with programming languages.
Assembly language:
Assembly language is intended to communicate directly with a computer's hardware. Unlike the usual machine
language, which consists of binary characters, assembly language is expressed in a more human readable form.
In future many of you are going to learn and program microprocessors in your higher studies or jobs; that would
require an expertise in assembly language.
Procedural:
Consider a scenario where a program has to collect some data from users (read), perform some calculations
(calculate), and then display the result(print) when requested; a simple example of this scenario is any online
transaction that you/your parents do. In procedural approach, we can write 3 different procedures/functions for
each of the operations of reading, calculating and printing (which could interact amongst each other as well).
Hence, in the procedural approach:
• The entire program code is organized as a set of procedures/functions or discrete blocks of codes that are
executed in an order.
• These procedures are also known as subroutines or functions and contain a series of steps that will be carried
out when the procedure is called/used.
• Some of the programming languages that enable us to use procedural approach : BASIC, FORTRAN, ALGOL, C,
COBOL, and Pascal.
• The program code is organized in pure functions(which always yield the same value for the same set of inputs
without any deviation) with each function set up to perform a clearly defined task.
• The data/variables are passed in the function as parameters (for the functions to interact with other functions
or programs).
• Languages that support this approach are: Javascript, Python, etc.
Object Oriented:
• The program data is organized in classes and objects rather than functions and logic.
• A class is a blueprint for creating objects and an object is referred to as an instance of a class that has unique
attributes and behavior.
• A good example of this could be you, yes you! You can be a ‘student’ or a ‘working professional’. In this scenario,
under the class of ‘Person’, we can have a ‘Student’ or ‘Working professional’ class and you can be an
instance of any of these based on whether you fall in the ‘student’ category or ‘working professional’ category.
Hence, you are an object
• Languages that support object-oriented approach include: Java, C++, C#, Python, R, PHP, Visual Basic.
The programming language that we would learn in the very first go has to be a simple yet most capable one!
Yes, you guessed it right, it's C++ !!
Lets now, hit the bulls eye !!
Let's get started.