1
1
Computer Environments
C++ - Introduction
2
Course Prerequisite (Background & Objectives)
Course Objective:
3
Course Examination Policy
Quiz on Due date & Time (no retake for missed one)
Assignment on Due date and Time (No acceptance after due date & time)
4
Course Attendance Policy
5
Recommended Books
C++ Programming
From Problem Analysis to Program Design
Sixth Edition
D S Malik
6
Course Evaluation Criteria
7
Programming Fundamentals
8
Introduction to Computer
What is Computer:
A device that takes the data as input , process it and then return the result
as an information(output).
Input
Data Processing Output
(Data)
9
Introduction to Computer
Components of Computer:
Computer system made up of two major components
Computer System
Hardware Software
10
Introduction to Computer
Hardware
Computer hardware is the collection of physical elements that constitutes a
computer system.
11
Introduction to Computer
Software:
Software is a program that enables a computer to perform a specific task, as
opposed to the physical components of the system (hardware).
12
Introduction to Computer
13
Computer Software
Software Categories
14
Computer Software
System Software
Operating system is a program that manages interactions between:
users and hardware;
users and software;
hardware and software;
... and so much more.
Device Drivers are Software use to communicate between the devices and
computers.
Application Software:
Application software is a set of one or more programs designed to carry out
operations for a specific application. Application software cannot run on itself
but is dependent on system software to execute.
16
Computer Environment
Personal Computer
17
Computer Environment
18
Computer Environment
Client/Server Environment
19
Computer Languages
20
Computer Languages
Machine Languages
Machine code or machine language is a set of instructions executed directly by
a computer's Central Processing Unit (CPU).
While easily understood by computers, machine languages are almost
impossible for humans to use because they consist entirely of numbers.
21
Computer Languages
Assembly Language
Low level Language and just one level higher than machine language
Works directly with microprocessor
Embedded Systems depends on Assembly language
22
Computer Languages
23
C++ - Introduction
24
C++ - Introduction
History of C++
The C language was developed in late 60’s and early 70’s, in Bell
Laboratories.
Before this B and BCPL language were invented to write the Operating
system.
25
C++ - Introduction
26
C++ - Introduction
What is IDE?
An integrated development environment (IDE) or interactive development
environment is a software application that provides comprehensive
facilities to computer programmers for software development.
Program is created in Editor and stored on Disk.
C++ program is stored with extension “.cpp”
27
C++ - Introduction
What is Preprocessor?
The preprocessors are the directives, which give instruction to the
compiler to preprocess the information before actual compilation starts
For example
#include <iostream>
#define PI 3.14159
28
C++ - Introduction
What is Compiler?
A compiler is a computer program that processes statements written in a
particular programming language (source code) and turns them into
machine language (object code) that a computer processor uses.
29
C++ - Introduction
30
C++ - Introduction
What is Linker?
a program used with a compiler or assembler to provide links to the
libraries needed for an executable program.
a program that takes one or more object files generated by a compiler and
combines them into a single executable file, library file, or another object
file.
31
C++ - Introduction
What is Loader?
a loader is the part of an operating system that is responsible for loading
programs and libraries.
A loader loads the programs into the main memory from the storage
device.
32
C++ - Introduction
What is Debugger?
a computer program that assists in the detection and correction of errors in
computer programs.
used to correct the logical errors
control our program while it is running
stop the execution of program at some point and can check the values
in different variables, can change these values etc.
33
Programming With the Problem Analysis –
Coding – Execution Cycle
Programming is process of Problem Solving
Algorithm – A step by step problem solving process in
which a solution is arrived at in a finite amount of time
Three Steps in problem solving
1. Analyze the problem
2. Implement the algorithm
3. Maintain the program by using and modifying
34
Programming With the Problem Analysis –
Coding – Execution Cycle
35
Problem Analysis & Solution Design
36
Problem Analysis & Solution Design
37
Problem Analysis & Solution Design
38
Problem Analysis & Solution Design
39
40