You are on page 1of 22

3/17/2020

Duration: 90 min Bacheloor Degree Electrical Engineering ITI

Dasar Komputer dan Pemrograman


( Basic Computer and Programming)
Author: Saharudin

Tujuan Umum

• Mengetahui Komputer dan komponennya


• Memahami prinsip-prinsip pemrograman dan mampu merancang
program-program dalam bahasa Phyton

1
3/17/2020

Topik

• Komputer dan komponennya


• Konsep dasar pemrograman
• Deklarasi variable
• Percabangan
• Fungsi
• Array satu dimensi
• Pointer
• Struktur
• File
• Perancangan suatu program

Sistem Perkuliahan

• 1 x perkuliahan setiap minggu ( @ 1,5 Jam )


• 8 Modul Praktikum
• UTS dan UAS

2
3/17/2020

Evaluasi

• Ujian Tengah Semester : 30 %


• Ujian Akhir Semester : 40 %
• Praktikum : 20 %
• Absensi : 10 %

Text Book

Recommended Texts:
• Deitel, H.M. and P.J. Deitel, How to Program, Prentice Hall, New
Jersey: Englewood Cliffs, 1994.
• Markus, Pemrograman Turbo C, Elekmedia, 1992.
• Referensi : 1. Kadir, Abdul, Dasar-dasar Pemrograman C, Andi
Offset, Jogjakarta

3
3/17/2020

Duration: 90 min Bacheloor Degree Electrical Engineering ITI

Dasar Komputer dan Pemrograman


( Basic Computer and Programming)

Author: Saharudin

Lec 1. Komputer

Types of Computers

Workstation
Supercomputer

Palmtop Computer

Laptop Computer Personal Data Assistant

4
3/17/2020

New Learning Technologies

Internet
Multimedia
Virtual reality
Distance learning
Data warehousing

The Information Age Timeline

1970’s-1980’s 1990’s-?

Infrastructure focused Infrastructure focused


on data crunching and on communications,
data storage connectivity, and service

Shift in
information
infrastructure

5
3/17/2020

Progress of Technology through Time

ENIAC Current Technology


Composed of 17,000 vacuum tubes, 70,000 resistors, and 10,000 Today’s technology uses vast numbers of electronic
capacitors, the ENIAC (Electronic Numerical Integrator and components in the form of miniaturized integrated
Computer) weighed over 30 tons and took up 1800 square feet circuits contained on silicon chips. Modern day
of floor space. Completed in 1945, the ENIAC was used for desk calculators exceed ENIAC’s computational
ballistics work and later on for weather prediction. power and speed by far.

Personal and Multimedia Computers


IBM and Multimedia
DOS Microsoft Microsoft computers
Apple IBM
becomes the IBM first introduces
release the releases and personal
computer industry micro- Macintosh OS/2 Windows 3.0 data
created standard computer computer first laptop operating
computer assistants
created system developed

1976 1980 1981 1984 1986 1988 1990 1994

Computer Concepts 1-12

6
3/17/2020

Intel x86 Processors


• Dominate laptop/desktop/server market

• Evolutionary design
• Backwards compatible up until 8086, introduced in 1978
• Added more features as time goes on

• Complex instruction set computer (CISC)


• Many different instructions with many different formats
• But, only small subset encountered with Linux programs
• Hard to match performance of Reduced Instruction Set
Computers (RISC)
• But, Intel has done just that!
• In terms of speed. Less so for low power.

Intel x86 Evolution: Milestones


Name Date Transistors MHz
• 8086 1978 29K 5-10
• First 16-bit Intel processor. Basis for IBM PC & DOS
• 1MB address space
• 386 1985 275K 16-33
• First 32 bit Intel processor , referred to as IA32
• Added “flat addressing”, capable of running Unix
• Pentium 4E 2004 125M 2800-3800
• First 64-bit Intel x86 processor, referred to as x86-64
• Core 2 2006 291M 1060-3333
• First multi-core Intel processor
• Core i7 2008 731M 1600-4400
• Four cores (our shark machines)

7
3/17/2020

Intel x86 Processors, cont.


• Machine Evolution
• 386 1985 0.3M
• Pentium 1993 3.1M
• Pentium/MMX 1997 4.5M
• PentiumPro 1995 6.5M
• Pentium III 1999 8.2M
• Pentium 4 2000 42M
• Core 2 Duo 2006 291M
• Core i7 2008 731M
• Core i7 Skylake 2015 1.9B
• Added Features
• Instructions to support multimedia operations
• Instructions to enable more efficient conditional operations
• Transition from 32 bits to 64 bits
• More cores

Intel x86 Processors, cont.


• Past Generations Process technology
• 1st Pentium Pro 1995 600 nm
• 1st Pentium III 1999 250 nm
• 1st Pentium 4 2000 180 nm
• 1st Core 2 Duo 2006 65 nm
• Recent & Upcoming Generations Process technology dimension
1. Nehalem 2008 45 nm = width of narrowest wires
(10 nm ≈ 100 atoms wide)
2. Sandy Bridge 2011 32 nm
3. Ivy Bridge 2012 22 nm
4. Haswell 2013 22 nm
5. Broadwell 2014 14 nm
6. Skylake 2015 14 nm
7. Kaby Lake 2016 14 nm
8. Coffee Lake 2017 14 nm
• Cannon Lake 2019? 10 nm

8
3/17/2020

2018 State of the Art: Coffee Lake

• Mobile Model: Core i7  Server Model: Xeon E


• 2.2-3.2 GHz  Integrated graphics
• 45 W  Desktop Model: Core i7  Multi-socket enabled
 Integrated graphics  3.3-3.8 GHz
 2.4-4.0 GHz  80-95 W
 35-95 W

x86 Clones: Advanced Micro Devices


(AMD)
• Historically
• AMD has followed just behind Intel
• A little bit slower, a lot cheaper
• Then
• Recruited top circuit designers from Digital Equipment Corp. and other downward
trending companies
• Built Opteron: tough competitor to Pentium 4
• Developed x86-64, their own extension to 64 bits
• Recent Years
• Intel got its act together
• Leads the world in semiconductor technology
• AMD has fallen behind
• Relies on external semiconductor manufacturer

9
3/17/2020

Intel’s 64-Bit History


• 2001: Intel Attempts Radical Shift from IA32 to IA64
• Totally different architecture (Itanium)
• Executes IA32 code only as legacy
• Performance disappointing
• 2003: AMD Steps in with Evolutionary Solution
• x86-64 (now called “AMD64”)
• Intel Felt Obligated to Focus on IA64
• Hard to admit mistake or that AMD is better
• 2004: Intel Announces EM64T extension to IA32
• Extended Memory 64-bit Technology
• Almost identical to x86-64!
• All but low-end x86 processors support x86-64
• But, lots of code still runs in 32-bit mode

10
3/17/2020

Komputer dari masa ke masa

Kategori komputer
a. General Purpose Computer
komputer yang digunakan untuk
keperluan sehari-hari seperti
word processing, music player,
dll
b. Special-purpose Computer
komputer yang digunakan untuk
kebutuhan tertentu, seperti
medis, militer, dll

11
3/17/2020

Elemen Dasar Sistem Komputer


Elemen -elemen dasar dalam suatu sistem komputer idealnya meliputi
baik perangkat teknis dan non-teknis.

Perangkat teknis meliputi :


• Perangkat keras ( hardware )
• Piranti lunak ( software )
• Brainware

Hardware

PERANGKAT PERANGKAT PERANGKAT


INPUT PROSESS OUTPUT

PENYIMPAN DATA

12
3/17/2020

Software
perangkat lunak ataupun software
komputer bisa diartikan sebagai suatu
prosedur pengoperasian.

Software komputer terbagi menjadi


Compiler/ Interpreter, Operating System
dan Application Software.

13
3/17/2020

Software
Compiler atau interpreter bisa diibaratkan
sebagai suatu kamus yang berfungsi
untuk menterjemahkan bahasa
pemrograman yang ditulis oleh
programmer kedalam bahasa mesin agar
komputer bisa bekerja sesuai dengan
ketentuan program yang ditulis. Bahasa
mesin merupakan suatu bahasa yang
dikenal oleh komputer

14
3/17/2020

Software
Dengan adanya compiler ataupun intrepreter,
pemakai kemudian bisa berkomunikasi dengan
bahasa yang lebih "manusiawi" jika dibanding
dengan bahasa mesin. Bahasa yang lebih
manusiawi ini kemudian dikenal sebagai high
level language. Pemakai menuliskan instruksi
dalam high level language dan komputer
menterjemahkan dalam low level language
(bahasa mesin).

Software
Operating system merupakan
suatu software yang sifatnya
sangat mendasar dan mutlak
diperlukan untuk
mengoperasikan komputer.
Operating sistem merupakan
kumpulan program yang
dibikin oleh pabrik komputer
dengan memperhatikan
bentuk dan cara kerja
hardware yang mereka miliki. Definisi Operating System berdasar American
National Standart Institute (ANSI) adalah:
Software yang mengontrol pelaksanaan
program-program komputer, yaitu dengan
mengatur waktu proses, pengecekan kesalahan,
mengontrol input dan output, melakukan perhitungan,
kompilasi, penyimpanan, pengolahan data serta
pelbagai bentuk layanan yang terkait.

15
3/17/2020

Software

DOS

Windows Vista Windows XP

Software

16
3/17/2020

Software
Aplication Software
Adalah software – software selain operating system.
Secara umum aplication software dapat dibagi menjadi;
1. Programming Software
2. Package software
a. package program
b. Tailor made program

Software
Programming language atau bahasa
program adalah suatu bahasa
ataupun suatu tatacara yang dapat
digunakan oleh manusia
(programmer) untuk berkomunikasi
secara langsung dengan komputer.
Jenis programming language
sangatlah banyak. Tetapi secara
umum, pengertian programming
language dapat dibagi menjadi dua,
yaitu Low Level Language dan High
Level Language.

17
3/17/2020

Software
Low level language
adalah suatu bahasa program
atau suatu tatacara yang
dapat digunakan untuk
berkomunikasi dengan
komputer. Dalam hal ini
tatacara yang digunakan
masih ber-orientasi dengan
mesin, dikarenakan itu low
level langugae juga disebut
sebagai bahasa mesin.

Software
Assembly language
adalah pengembangan yang di
ciptakan untuk menuliskan program
dengan menggunakan kode instruksi
dan label yang mewakili lokasi
penyimpanan dengan syarat
komputer memiliki sarana untuk
menterjemahkan kedalam bahasa
mesin.

18
3/17/2020

Software
High level language
merupakan suatu bahasa program atau
suatu tata cara yang dapat digunakan
untuk memberi perintah/instruksi
kepada komputer dengan dengan tata
cara yang digunakan oleh manusia
dalam berkomunikasi.

Software
High level language
Jenis high level language cukup banyak, seperti
misalnya BASIC, COBOL, FORTRAN dan lain
sebagainya. Sama halnya dengan tatacara yang
terdapat dalam bahasa assembly, penulisan
program dalam high level language juga harus
diterjemahkan kedalam bahasa mesin sebelum
proses dilakukan. Program penterjemah disebuh
compiler atau interpreter.

19
3/17/2020

Software
Basic Pascal

Dbase Programming
Fortran
CoBol
C

Phyton

Java
Borland C++

Software
Package Software
merupakan suatu
software yang dibikin
oleh Software House
ataupun Konsultan
Komputer ataupun
Organisasi yang ditulis
agar bisa digunakan oleh
para pemakai komputer.

20
3/17/2020

Software
Package Program merupakan
suatu program jadi dan
pemakai komputer tinggal
memanfaatkan-nya saja

Software
Program Tailor Made adalah
program yang secara khusus
dibuat untuk menyelesaikan suatu
permasalahan diperusahaan
tersebut.

21
3/17/2020

Brainware

22

You might also like