Professional Documents
Culture Documents
INTRODUCTION TO
COMPUTER
PROGRAMMING
Lecture 1
1
Course Content
Introduction to the course and computer
C++ Structure and programming
C++ Data types
C++ operators, intrinsic functions,
and strings
Control structures: Selection-I
Computer Lab-1
Control structures: Selection-II
Computer Lab-2
Control structures: Repetitive structures-I
Computer Lab-3
Control structures: Repetitive structures-II
Computer Lab-4
Formatted I/O and File processing
Computer Lab-5
Review
MIDTERM-1
2
Functions I:
Introduction and Basics (Part I)
Computer Lab-6
Functions II:
Introduction and Basics (Part II)
Computer Lab-7
One-dimensional Arrays
Multi-dimensional Arrays
Computer Lab-8
Vectors
Computer Lab-9
General Review
MIDTERM-2
3
Lectures, Labs, Attendance, Exams
Monday
two-hour programming session 08:30-10:10 in Com. Lab.
Tuesday
two-hour programming session 08:30-10:10 in Com. Lab.
Attendance
You must attend at least 70% of the course
Exams
All are written exams
First midterm 30%
Second midterm 30%
Final 40%
4
Compiler and Computer Labs
We will learn C++ using the Orwell Dev-C++ compiler under Windows
It is free compiler and you can download from
http://sourceforge.net/projects/orwelldevcpp/
In the Computer Labs your programs will be deleted when the computer
restarted. So you need to save them on a flash drive or on the internet.
Hardware (=Donanım)
See http://en.wikipedia.org/wiki/Hardware
- Storage Units
- Input Units
- Output Units
- Process Units
7
Parts of a Digital Computer
Storage Units
Others:
Flash memory (memory cards, USB flash drives), CD, DVD...
8
HDD (“Hard Disk Drive”)
9
RAM (“Random Access Memory”)
SDR-RAM DDR-RAM
DDR II-RAM
DDR III-RAM
10
Flash memory (memory cards, USB flash
drives), CD, DVD...
11
Parts of a Digital Computer
Input Units
Keyboard,
Mouse
Touch screen/pad
RAM,
HDD
Flash memory…
12
Keyboard
Q- keyboard
F- keyboard
13
Mouse
14
Touch screen/pad
Touchpad-
Touch Screen
Laptop
15
Parts of a Digital Computer
Output Units
Monitor
Printer
Speaker
RAM
HDD
Flash Memory
16
Monitor
17
Printer
Dot matrix, ink jet, bubble jet, and laser are some of the types of available
printers
Dot Matrix Ink Jet Laser
18
Speaker
19
Parts of a Digital Computer
Process Units
20
Parts of a Digital Computer
21
Parts of a Digital Computer
Software (=Yazılım)
See http://en.wikipedia.org/wiki/Software
22
Operating System (OS)
The OS is a program written to interface
between the computer and it’s user. All
other software runs under the OS.
Examples are:
Miscrosoft Windows (XP, Vista, 7,8)
Linux (e.g. Redhat, Ubuntu, Pardus)
Mac OS X.
23
Compilers
24
Application Programs
Examples are:
Microsoft Word
AutoCAD,
SolidWorks
Catia
ANSYS
25
An Engineer and Computers
Engineers use computers extensively
to produce and analyze designs;
to simulate and test how a machine, structure, or system
operates;
to generate specifications for parts;
to monitor the quality of products; and
to control the efficiency of processes
26
Computer Languages
Language Application Area Origin of Name
Fortran Scientific programming Formula translation
COBOL Business data processing Common Business-Oriented Language