Introduction to programming - Lecture 1: intro to c++
content
What is programming?
Computer Program
Why to Create a software?
Computer Program - EXAMPLE
How to Create a software?
Programming languages
Levels of Programming
Levels of Programming
Levels of Programming
Levels of Programming-example
C++ Program execution Phases
C++ Program execution Phases
C++ as a First Language
What is c++ used for?
What is c++ used for?
What is c++ used for?
Types of Programming
IDE and books
32.75M

Lecture 1 - Intro to C++ (6)

1. Introduction to programming - Lecture 1: intro to c++

INTRODUCTION TO PROGRAMMING - LECTURE 1:
INTRO TO C++
Aigerim Aibatbek - Senior Lecturer
aigerim.aibatbek@astanait.edu.kz

2. content

CONTENT
1. Computer Program
2. Programming Languages
3. Levels of Programming
4. C++ Program Execution Phases
5. C++ as a first language
6. What is C++ used for?
7. Types of Programming
8. IDE and books

3. What is programming?

WHAT IS PROGRAMMING?
• The term programming means to create (or develop)
software, which is also called a computer program.
• A computer program or software contains a set of instructions
that tell computer what to do.

4. Computer Program

COMPUTER PROGRAM
Software is all around you, even in devices that you might not think would need it.

5. Why to Create a software?

WHY TO CREATE A SOFTWARE?
Make our lives easier.

6. Computer Program - EXAMPLE

COMPUTER PROGRAM - EXAMPLE
• Let's imagine that we want to create a simple calculator
that adds(+), subtracts(-), multiplies(x) and divides(/)
two numbers that user will enter.
What are the steps ?

7. How to Create a software?

HOW TO CREATE A SOFTWARE?
1. Give instructions to your computer that direct the computer hardware to perform
specific tasks.
* Use programming languages to be able to “talk” to
your computer

8. Programming languages

PROGRAMMING LANGUAGES
• A computer program can be written in any programming language depending upon the
purpose and the type of the software being developed.
• There are many programming languages. Each language was invented for a specific
purpose.

9. Levels of Programming

LEVELS OF PROGRAMMING
The programming languages are generally classified as high and low level language. The
lower level programming language is machine readable (ex: Assembly language).

10. Levels of Programming

LEVELS OF PROGRAMMING
The higher level programming language is human readable.

11. Levels of Programming

LEVELS OF PROGRAMMING

12. Levels of Programming-example

LEVELS OF PROGRAMMING-EXAMPLE
Picture 2: The following program prints the number
1 to 10 on the screen in C++ language
Middle level programming language
Picture 1: The following program prints the number
1 to 9 on the screen in assembly language
Low level programming language

13. C++ Program execution Phases

C++ PROGRAM EXECUTION PHASES
Phase 3: Translator programs called compilers
convert high level language programs into
machine language also referred to as object
code

14. C++ Program execution Phases

C++ PROGRAM EXECUTION PHASES

15. C++ as a First Language

C++ AS A FIRST LANGUAGE
• Standard by which all other languages are judged
• Full control on memory
• One of the fastest programming languages in terms
of execution
• Facilitates structured and disciplined approach to
computer program design

16. What is c++ used for?

WHAT IS C++ USED FOR?
Here are top 3 real-world applications and uses of C++:
1. Game Development
This is because C++ helps to optimize resources, which means developers can
dictate how memory allocation and data structures are managed. C++ also
allows for multilayer networking.

17. What is c++ used for?

WHAT IS C++ USED FOR?
Here are top 3 real-world applications and uses of C++:
2. Operating Systems
When it comes to operating systems, it’s of paramount importance for them to move
swiftly and efficiently. The low-level capabilities of C++ means that developers are
able to structure their code with tiny details to maximize the efficiency of operating
systems.
Apple OS X has some
of its parts written in
C++
Most of the software from
Microsoft is developed using
C++

18. What is c++ used for?

WHAT IS C++ USED FOR?
Here are top 3 real-world applications and uses of C++:
3. Database Software
C++ is also used in writing database management software. The two most
popular databases MySQL and Postgres are written in C++.

19. Types of Programming

TYPES OF PROGRAMMING
✓ Procedure Oriented Programming (POP) is based on the list of instructions
where each statement tells the computer what to do step by step (Linear
programming). Examples of POP are: FORTRAN, Pascal, VB etc.
✓ Object Oriented Programming (OOP) is a programming paradigm based
on the concept of objects (Will be covered in the next course). Examples of
OOP are: C++, Java, C#.NET etc

20. IDE and books

IDE AND BOOKS
• Which IDE (Integrated Development Environment) to use?
1.Visual Studio 2019 (recommended)
2.Code::Blocks or Dev C++
3.Xcode or Netbeans
• There are couple of books which are used to conduct this course:
1. Deitel P.J. and Deitel H.M. 2017. C++ How to Program, 10th global
edition
2. Y.Daniel Liang – Introduction to Programming with C++, 3rd edition

21.

GOOD LUCK!
English     Русский Правила