Page 4 - MODUL ALGORTIMA DAN PEMROGRAMAN
P. 4

D.  Rangkuman ............................................................................................................................. 26
                    E.  Soal Latihan ............................................................................................................................ 26
                  MATERI 4  VARIABEL, KONSTANTA, DAN OPERATOR ......................................................... 28

                    A.  Variabel ................................................................................................................................... 29
                    B.  Konstanta ................................................................................................................................ 29
                    C.  Variabel Lokal dan Global ..................................................................................................... 30

                    D.  Operator .................................................................................................................................. 31
                    E.  Contoh Program ..................................................................................................................... 35
                    F.  Rangkuman ............................................................................................................................. 44

                    G.    Soal Latihan ............................................................................................................................ 44
                  MATERI 5 TIPE DATA DASAR ...................................................................................................... 45
                    A.  Pengenalan Tipe Data Dasar ................................................................................................. 46

                    B.  Tipe Bilangan Bulat ................................................................................................................ 47
                    C.  Tipe Bilangan Real (Floating Point) ...................................................................................... 48
                    D.  Tipe logika ............................................................................................................................... 49

                    E.  Tipe karakter .......................................................................................................................... 50
                    F.  Contoh program ..................................................................................................................... 51
                    G.    Rangkuman............................................................................................................................. 54

                    H.    Soal Latihan ............................................................................................................................ 54
                  MATERI 6 TIPE DATA BENTUKAN .............................................................................................. 55
                    A.  Struct........................................................................................................................................ 56

                    B.  Union ....................................................................................................................................... 57
                    C.  Persamaan dan perbedaan antara Struct dan Union ........................................................... 59
                    D.  Enumeration ............................................................................................................................ 60

                    E.  Typedef ..................................................................................................................................... 63
                    F.  Contoh Program ..................................................................................................................... 64
                    G.    Rangkuman............................................................................................................................. 69

                    H.    Soal Latihan ............................................................................................................................ 70
                  MATERI 7 STRING .......................................................................................................................... 71
                    A.  String Gaya Bahasa C ............................................................................................................ 72

                    B.  String Gaya Bahasa C++ ........................................................................................................ 72
                    C.  Contoh Program ..................................................................................................................... 74
                    D.  Rangkuman ............................................................................................................................. 75

                    E.  Soal Latihan ............................................................................................................................ 76
                  MATERI 8 ARRAY ............................................................................................................................ 77
                    A.  Array 1 Dimensi ...................................................................................................................... 79

                    B.  Array 2 Dimensi ...................................................................................................................... 81

                                                              iv
   1   2   3   4   5   6   7   8   9