Struktur looping digunakan untuk mengulangi langkah-langkah sebelumnya yang telah dikerjakan sampai suatu kondisi berhenti terpenuhi. Terdapat tiga jenis pernyataan looping yaitu while, do...while, dan for yang masing-masing memiliki syarat tersendiri untuk mengulang perintah.
Dicoding Developer Coaching #3: Android | Perulangan dan Percabangan pada KotlinDicodingEvent
Dicoding Developer Coaching merupakan webinar, yang membahas tuntas kendala maupun pertanyaan yang sering ditanyakan di academy dicoding.
Tema kali ini membahas "Perulangan dan Percabangan pada Kotlin."
Saksikan selalu Dicoding Developer Coaching di: dicoding.id/dicodingdevelopercoaching
Dicoding Developer Coaching #3: Android | Perulangan dan Percabangan pada KotlinDicodingEvent
Dicoding Developer Coaching merupakan webinar, yang membahas tuntas kendala maupun pertanyaan yang sering ditanyakan di academy dicoding.
Tema kali ini membahas "Perulangan dan Percabangan pada Kotlin."
Saksikan selalu Dicoding Developer Coaching di: dicoding.id/dicodingdevelopercoaching
[ Related blog post: http://www.wewwchemistry.com/2013/08/graphs-showing-effect-of-changing-conditions-on-equilibrium ] This file was updated on 15 Aug 2013. Minor changes were made to Slides 12 and 15. More substantial changes were made to Slides 26 to 45, primarily to modify the concentration-time graphs so that these were consistent with those I used in my detailed explanation on the effect of changing conditions on an equilibrium system.
~~~~~~~~~~~~~~~~~~~~
This is a summary of Chemical Equilibria, prepared according to the Singapore-Cambridge GCE A Level 9647 H2 Chemistry syllabus. It covers the differences between reversible and irreversible reactions, and explains the equilibrium state. Factors affecting equilibrium system, as applied to the Haber process, are also included.
[ Related blog post: http://www.wewwchemistry.com/2014/06/chemistry-of-chromium ]
These slides briefly describe the chemistry of chromium within the scope of the Singapore-Cambridge GCE A Level 9647 H2 Chemistry syllabus. Topics include the unusual electronic configuration of chromium, the various oxidation states of chromium and the reactions of common chromium compounds like chromium(III) chloride, chromium(III) nitrate, chromium(III) hydroxide,potassium chromate(VI) and potassium dichromate(VI).
[ Visit http://www.wewwchemistry.com ] This example shows how the pH of a buffer may be calculated. An acidic buffer containing ethanoic acid and ethanoate ions is used. Two methods are shown: the first requires the construction of the ICE table, while the second involves direct substitution of given data into the Henderson-Hasselbalch equation.
Hybridisation of Carbon Atomic Orbitalswewwchemistry
[ Visit http://www.wewwchemistry.com ] This set of Powerpoint slides introduces students to the basic concepts of Hybridisation Theory as applied to the atomic orbitals of carbon. sp3 hybridisation as in methane, sp2 hybridisation as in ethene, and sp hybridisation as in ethyne, are illustrated.
Effect of Concentration Changes on Cell Potentialwewwchemistry
[ Visit http://www.wewwchemistry.com ] This example uses the Nernst equation to illustrate how changes in reactant or product concentration (effected by dilution) affect cell potentials.
[ Visit http://www.wewwchemistry.com ] This is a summary presentation of the introductory topics in Organic Chemistry, prepared according to the Singapore-Cambridge GCE A Level 9647 H2 Chemistry syllabus.
Website Bán Hàng
Website Doanh Nghiệp
Website Đa Phương Tiện Và Đa Ngôn Ngữ Cao Cấp
Website được thiế kế chuẩn SEO
Đội ngũ kỹ thuật viên chuyên nghiệp và kinh nghiệm
Giao diện website được thiết kế hiển thị tốt trên tất cả các thiết bị PC, laptop, máy tính bảng, smartphone
LH: 0916 395 631
Website: kingads.net
Số 4 Hoa Sữa, P.7, Q.PN
3. Struktur looping digunakan untuk
mengulangi langkah-langkah sebelumnya
yang telah dikerjakan, kondisi perulangan
dilakukan sampai suatu kondisi berhenti
terpenuhi.
Pemutaran kembali terjadi ketika
mengalihkan arus diagram alur kembali ke
atas, sehingga beberapa alur kembali
berulang beberapa kali.
4. Contoh Diagram Alur
(1). Variabel A diberi
A 1
harga 1.
(2). Variabel A berubah
harga menjadi 2
A A+1 (3). Variabel B diberi
harga sebesar harga A
dikalikan dengan harga
B A*A A sendiri.
(4). Harga B dicetak, lalu
kembali ke langkah
Cetak B 2,3, 4, dst
Jadi yang tercetak adalah
harga 4, 9, 16, dst...
5. Statement While
Statement Do....While
Statement For
Statement For Positif
Statement For Negatif
Statement For Bersarang (Nested Loop)
6. Perulangan akan terus dilaksanakan selama
syarat tersebut terpenuhi.
Bentuk Umum :
while (syarat)
pernyataan;
Contoh :
int bil = 1;
while (bil<=5)
cout<<bil;
++bil;
Output : 1, 2,3, 4, 5
7. Perulangan akan dilaksanakan terlebih dahulu
dan pengujian perulangan dilakukan belakangan.
Bentuk Umum :
do
pernyataan;
while (syarat);
Contoh :
int bil=2;
do
cout<<bil;
bil+=2;
while(bil>=10);
Output : 2 4 6 8 10
8. Bentuk Umum :
for (inisialisasi; syarat perulangan; pengubah nilai)
pemberian nilai awal mengatur naik/turun
Contoh :
for (a=0; a<=10; ++a) perulangan positif (+1)
for (a=0; a<=10; a+=2) perulangan positif (+2)
for (a=12; a>=10; --a) perulangan negatif
9. Perulangan for di dalam for lainnya
Bentuk Umum :
for (inisialisasi; syarat pengulangan; pengubah nilai)
{
for (inisialisasi; syarat pengulangan; pengubah nilai)
{
perintah;
}
}
10. Dalam membuat algoritma (contoh:
menggunakan flowchart. Sebelum membuat
flowchart terlebih dahulu kita identifikasi
kira-kira ada berapa variabel/peubah yang
digunakan dalam proses pembuatan
algoritma.
Bila sebuah rumus : luas = panjang x lebar
Maka bila dibuat algoritmanya maka nanti
terdapat 3 buah variabel yang akan
digunakan.
11. Proses Mencetak bilangan 1 sampai 10
Start
Bil = 1
Bil
Yes
Bil<=10 Bil = Bil +1
No
End