0% found this document useful (0 votes)
17 views23 pages

Lec 1 Week 1

The document outlines the fundamentals of programming, covering topics such as operators, conditional statements, loops, arrays, and functions. It emphasizes the importance of programming in modern civilization and introduces various programming languages, including machine, assembly, high-level, procedural, and object-oriented languages, particularly focusing on C++. Additionally, it highlights the features and applications of C++, noting its significance in software development and its versatility across different platforms.

Uploaded by

Umer Blouxh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views23 pages

Lec 1 Week 1

The document outlines the fundamentals of programming, covering topics such as operators, conditional statements, loops, arrays, and functions. It emphasizes the importance of programming in modern civilization and introduces various programming languages, including machine, assembly, high-level, procedural, and object-oriented languages, particularly focusing on C++. Additionally, it highlights the features and applications of C++, noting its significance in software development and its versatility across different platforms.

Uploaded by

Umer Blouxh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 23

PROGRAMMING

FUNDAMENTALS
LAB
Umer Ahmad..
Lecture 1
Week 1
Recommended books
books
links https://faculty.ksu.edu.sa/sites/default/files/ObjectOrientedPro
gramminginC4thEdition.pdf
https://bukharibooks.com/product/c-how-to-program-8th-deitel/
Course Content
• Introduction

• Arithmetic operators

• Logical operators

• Conditional operators

• Conditional statements

• If

• If else

• If else if

• Nested if and nested if else

• Switch

• Loops

• Types of loops
Arrays
Types of arrays
1 d array

After Mid Searching in array


Linear search or sequential search

Term Binary search


Insertion sort
Exams Deletion sort
Sorting techniques
Bubble sort
Selection sort
Functio
ns Types of functions
Built in functions
Continue.. User define
functions
Functions with
array
Pointers
CORE OF MANY COURSES OBJECT DATA ADVANCE COMPUTER
COMPUTER DEPEND UPON ORIENTED STRUCTURE PROGRAMMING GRAPHICS
SCIENCE THIS COURSE PROGRAMMING TECHNIQUES

Importance of Course
•Acomputer is a device that can perform computations and make
logical decisions faster than human beings can.

What is Computer?
What is Computer Program?
•A program is a set of instruction in proper
sequence, that causes a computer to
perform a particular task.
• Theseprograms guide the computer
through orderly sets of actions specified by
people called computer programmers.
• The programs that run on a computer are
referred to as software.
Computer Program (software)

A sequence of instructions is These instructions are


called a computer program written in a programming
or software. language.
A programmer,
sometimes called a
Programmers use a
developer, is someone
Complex programs can programming language
who develops software or
require thousands to or program development
writes the instructions
millions of instructions. tool to create computer
that direct the computer
programs.
to process data into
information.

Software Development
Why Programming?

Most
Our civilization engineering
Programming is
runs on activities
important are:
software: involve
software.

To interact with To create


To automate
machines and intelligent
tasks.
computer. machines.
• Programmers write instructions in various
programming languages, some directly
understandable by computers and others
requiring intermediate translation steps.
• These may be divided into three general
types:
Programming • Machine languages
Languages
• Assembly languages
• High level languages
• Procedural Languages
• Object Oriented Languages
Written in the form of 0 & 1

Machine Any computer can directly


understand only its own
Language machine language, defined by
its hardware design.

Machine Dependent
Assembly Languages

Use Naturally
It is a low level understandable Example: Load
language. symbols called 3, Load 4, Add
“Mnemonics”

It works
Assemblers are
directly with
used as
microprocessor
interpreter.
.
• Assemblylanguage is intermediate
between high level language and
machine code.
High Level Languages

Use naturally understand Compilers are used as IDE’s are used for rapid
language. interpreter development like C++, .NET
environment, Visual Basic and
Visual C++
Procedura
Procedural programming is a list or set
of instructions telling a computer what
to do step by step and how to perform

l from the first code to the second code.

Language Procedural programming languages


s include C, Go, Fortran, Pascal and Basic.
• OOP is a programming paradigm based on the
concept of “objects”, which are data
structures that contain data, in the form of
Object Oriented fields, often known as attributes; and codes,
in the form of procedures, often known as
Language methods.
• Significant object-oriented languages include
Python, C++, Java, C# etc.
• C++ is an Object Oriented Programming
Language.
• C++ have huge Function Library.
• C++ is highly Flexible language.
Characteristics • C++ can be used for developing system
of OOP software ( Operating system, compilers,
Editors )
• C++ is suitable for development of reusable
Software thus reduce cost of software.
• C++ is a Machine Independent Language
C++ IS EXTENDED
VERSION OF C
LANGUAGE
C++ is developed by Bjarne Stroustrup
Mother of almost all
Programming languages

Programming concepts that


Why C++ you learn using C++ can be
used directly in other
languages.

C++ is available on almost all


kinds of computers
Where we use C++ Language
• C++ language is mainly used for:
• Design Operating System.
• Design Language Compiler
• Design Database
• Utilities

• Application Software
Features of C++

Huge
Case Object Function Modularit
Simple Sensitive Oriented Library y Powerful

Syntax Platform Uses of Compiler Fast and portabilit


Based Depende Pointer Based efficient y
nt

You might also like