Anda di halaman 1dari 32

KOD ARAHAN

KOD ARAHAN
KOD ARAHAN HTML
4.1 Kod Arahan
4.1.1 Pemboleh Ubah dan Operator Matematik dalam Pengaturcaraan
4.1.2 Atur Cara yang Melibatkan Struktur Kawalan Pelbagai Pilihan
4.1.3 Atur Cara yang Melibatkan Struktur Kawalan Ulangan
4.1.4 Pembangunan Atur Cara
4.1.5 Menguji Atur Cara dan Membaiki Ralat
4.1.1 Pemboleh Ubah dan Operator Matematik
dalam Pengaturcaraan
Pemboleh ubah menyimpan data dalam bentuk

nilai berangka seperti integer dan nombor


storan ingatan yang perpuluhan,
digunakan oleh program
komputer untuk menyimpan teks seperti “jumlah” atau
data yang perlu diolahkan
kemudian. nilai logik seperti “Benar” atau “Palsu”.
4.1.1 Pemboleh Ubah dan Operator Matematik
dalam Pengaturcaraan
Operator ialah simbol-simbol
matematik yang digunakan dalam
menjalankan operasi matematik
dalam kod arahan.
4.1.2 Atur Cara yang Melibatkan Struktur
Kawalan Pelbagai Pilihan

Dalam pengaturcaraan, sesuatu program mungkin


mempunyai beberapa pilihan arahan untuk dilaksanakan
dalam keadaan tertentu. Pelaksanaan pilihan arahan ini
bergantung kepada syarat-syarat yang tertentu.

Struktur kawalan ini disebut


pelbagai pilihan.
CONTOH
4.1.3 Atur Cara yang Melibatkan Struktur
Kawalan Ulangan
Ulangan
Tindakan yang satu proses atur cara akan
berulang-ulang disebut mengarahkan program
ulangan atau gelung melakukan sesuatu tindakan
berulang-ulang
sehingga sesuatu syarat
dipenuhi
INTRODUCTION
Venus has a beautiful name and is
the second planet from the Sun.
It’s terribly hot—even hotter than
Mercury
4.1.4 Pembangunan Atur Cara

Pembangunan atur cara melibatkan lima fasa


utama iaitu analisis masalah, reka bentuk
program, pengekodan, pengujian dan
penyahpepijatan, serta dokumentasi.
FASA ANALISIS FASA REKA
MASALAH BENTUK ATUR
CARA

Pengatur cara mula


Pengatur cara akan (a) Pseudokod
menulis pseudokod,
melakukan temu bual
melakar carta alir dan (b) Carta alir
bersama pelanggan
mereka bentuk Antara
untuk mengetahui (c) Antara muka
Muka Pengguna Grafik
kehendak pelanggan
juga dikenali Graphical
dan bagi menentukan pengguna grafik
User Interface (GUI).
input, proses dan output
untuk atur cara yang
akan dibangunkan
FASA FASA PENGUJIAN
DAN DOKUMENTASI
PENGEKODAN
PENYAHPEPIJATAN
Dokumentasi dalaman
Pengatur cara akan Pengatur cara akan disediakan untuk kegunaan
menukarkan pseudokod menguji atur cara yang pengatur cara lain atau
kepada kod yang difahami telah ditulis untuk pihak pelanggan bagi
oleh komputer dengan mengesan dan memudahkan
menggunakan bahasa membetulkan sebarang penyelenggaraan atur cara
pengaturcaraan seperti ralat yang terdapat pada atau sistem.
Visual Basic, JAVA atur cara.
ataupun Visual C++. Dokumentasi luaran
Ralat Masa disediakan kepada pengguna akhir yang
Ralat
Larian menggunakan atur cara tersebut.
Rujuk Buku Teks
Sintaks
ms 103 - 105
menerangkan cara-cara menggunakan
Ralat Logik atur cara (manual pengguna)
FEATURES OF THE TOPIC

● You can write about the


topic here

● You can write about the


topic here

● You can write about the


topic here

● You can write about the


topic here
100,000,000
Illiterate youth in the world

44,000,000
Illiterate young men

56,000,000
Illiterate young women
PRACTICAL USES OF THIS SUBJECT

VENUS SATURN
Venus has a very Saturn is the ringed one
beautiful name and a gas giant

MARS JUPITER
Despite being red, Mars It’s a giant and the
is a cold place biggest planet
DEMO
Despite being red, Mars is a cold
place. It’s full of iron oxide dust,
which gives the planet its reddish
cast

You can add your own multimedia content here. Delete this
image and insert the video in its place
DID YOU KNOW THIS?

MERCURY MARS SATURN


Mercury is the closest planet Despite being red, Mars is a Saturn is the ringed one and
to the Sun cold place a gas giant

VENUS JUPITER NEPTUNE


Venus is the second planet It’s the biggest planet in the Neptune is the farthest
from the Sun Solar System planet from the Sun
PROBLEM SOLUTION
Mercury is the closest planet Jupiter is a gas giant and the
to the Sun and the smallest biggest planet in the Solar
one System
PROCESS

Mercury is the Jupiter is the biggest


smallest planet planet

1960 1980 2000 2019

Neptune is the Venus has a beautiful


farthest planet name
AWESOME
WORDS
OVERVIEW

MERCURY

NEPTUNE JUPITER VENUS

It is the farthest planet It is the biggest planet in Venus has a beautiful


from the Sun the Solar System name, but it is hot
THIS IS A GRAPH
NEPTUNE
45% Neptune is the farthest
planet from the Sun

VENUS
15% Venus has a beautiful
name, but it’s hot

MERCURY
40% Mercury is the closest
To modify this graph, click on it, follow the link, planet to the Sun
change the data and paste the new graph here
A PICTURE IS A WORTH A
THOUSAND WORDS
13,012,400
Big numbers catch your audience’s attention
EXERCISE
94%
Venus has a beautiful
name

80%
Mercury is the
smallest planet

70%
Despite being red,
Mars is a cold place
ASSIGNMENT

VENUS SATURN EARTH

MASS 0.08 2.50 1.15

DIAMETER 5.95 9.82 1.05

GRAVITY 1.02 2.08 1.13


EDUCATION ICONS PACK
ALTERNATIVE RESOURCES
RESOURCES
Did you like the resources on this template? Get them for free at our other websites.

Photos
● Globe and books near laptop
● Kids and teacher posing while wearing a medical mask
● Happy teenager making notes near laptop

Vectors
● Online certification with laptop
● Online certification concept
● Online certification concept
● Online certification for college graduates

Icons
● Education Icon Pack
Storyset by Freepik
Create your Story with our illustrated concepts. Choose the style you like the most, edit its colors, pick
the background and layers you want to show and bring them to life with the animator panel! It will boost
your presentation. Check out How it Works.

Pana Amico Bro Rafiki Cuate


THANKS!
Do you have any questions?
youremail@freepik.com
+91 620 421 838
yourcompany.com
Please keep this slide
CREDITS: This presentation template was for attribution
created by Slidesgo, including icons by
Flaticon, infographics & images by Freepik

Anda mungkin juga menyukai