Week1-Agenda
• what isa program
• what is programming
• what is language
• programming language
• generations of programming languages
• types of programming languages
(machine, assembly, and high-level)
• language translators
• intro to c++ and IDE
6.
Introduction to
Programming
Programming isthe process of designing, coding, testing,
and maintaining software. It involves writing code that
computers can understand and execute to perform
specific tasks.
Instructor: Nimra Mughal
7.
Introducing Programming
1 Whatis Programming?
The process of creating
software, applications,
and systems by writing
instructions for a
computer
2 The Purpose of
Programming
Allows us to automate
manual tasks, solve
complex problems, and
create innovative
solutions
3 Benefits of Programming
Learning to program can enhance critical thinking, problem-
solving skills, and future job opportunities
8.
What is a
Program?
A program is a set of instructions that tell a computer what
to do.
It's like a recipe that tells a chef how to create a dish.
Without a program, a computer would just be a useless
piece of hardware.
9.
Defining "Program"
The Languageof Programs
The building blocks of
programs are written in
programming languages like
Python, C++, and Java.
The Role of Software
Development
Software development is
the process of designing,
coding, testing, and
maintaining software
programs.
The Functions of Programs
Programs can handle data
processing, create user
interfaces, automate routine
tasks and more.
10.
What is Programming?
1Process 🔄
Programming involves
writing instructions that
can automate tasks and
processes on a
computer.
2 Problem-Solving 💡
Programmers build
systems and solve real-
world problems, such as
developing applications
that run on mobile
devices or creating
algorithms that can
identify patterns in large
data sets.
3 Creativity
Developing software requires creativity, as programmers use
their skills and expertise to design user interfaces, write
efficient code, and improve performance.
11.
What is Language?
CommunicationTool
Language is a communication tool
that allows us to express our
thoughts, ideas, and feelings.
Programming languages are similar
in that they allow us to
communicate with computers.
Code-Based
Programming languages are made
up of a set of instructions or
commands that are written in
code. This code tells the computer
what to do and how to do it.
Machine Compatible
Computers can't understand human
language, so programming languages
provide a way for us to communicate
with machines. Programming languages
are designed to be compatible with the
way that computers process
information.
12.
Programming Languages
1
Low-Level Languages
Thefirst generation of programming languages are
machine-dependent, consisting of binary code that
represent simple instructions.
2
Low-Level Languages
The Second Generation language is Assembly
language programming that uses mnemonics, which
are symbols that represent machine code instructions.
3
High-Level Languages
The ThirdGeneration of programming languages High-level
language programming that use source code that is easier for
humans to read and write, and is then translated into machine
code by a compiler or interpreter
13.
Generations of ProgrammingLanguages
First Generation
Machine language
programming uses binary code,
which is the language that
computers used to understand.
Second Generation
Assembly language
programming uses mnemonics,
which are symbols that
represent machine code
instructions.
Third Generation
High-level language
programming uses source code
that is easier for humans to read
and write, and is then translated
into machine code by a compiler
or interpreter.
14.
Types of ProgrammingLanguages
Machine Language 🤖
It is the first generation of
programming language that
uses binary code
instructions for computer
hardware to understand.
Assembly Language 📝
It is the second generation
of programming language
that closely resembles the
machine language in
mnemonics, which are
English-like abbreviations
and symbols representing
sets of machine language
instructions.
High-Level Language 🧠
It is the third and the most
popular generation of
programming language that
is easier to read and write
for programmers, using
English-like statements,
functions and expressions,
and needs a language
translator to convert it into
machine code.
Language Translators: Functionand Types
1
Compilers 📝
Converts high-level language source code written by
a programmer into machine code or binary code
executable files.
2
Assembler
🏭
This translator converts assembly language code
into binary code.
3
Interpreters 🔍
Interprets high-level language source code line-by-
line, and executes the program step-by-step,
converting code to machine code.
19.
C++: Syntax andSemantics
1 Library 📚
C++ includes a standard
library of functions, pre-
defined classes, and data
types that developers can
use to write their programs.
2 Object-Oriented ✨
C++ is an object-oriented
programming language,
which means it uses classes
and objects to inherit
attributes and functionality
of existing objects and to
create new ones.
3 Syntax 🤔
C++ uses a syntax that is
closely related to the C
language, with similar
features, such as curly
braces, semicolons, and
data types.
20.
Integrated Development Environments(IDEs)
for C++
Visual Studio
A feature-rich and robust IDE
developed by Microsoft with
several built-in tools, such as a
debugger, code editor, and GUI
designer.
CodeBlocks
A popular and lightweight IDE
that supports multiple
programming languages,
including C++, with an intuitive
interface and many
customization options.
Dev C++
A free and open-source IDE,
mainly used for programming in
C++, with an easy-to-use
interface and a powerful
compiler.