Sabtu, 30 September 2017

Kasus 2 ~~ UTS

Kalimat deskriptif
Kalimat Deskriptif :
                                                Algoritma kriteria usia
DEKLARASI :
-          Bayi = int//angka
-          BALITA = int//angka
-          ANAK = int//angka
-          REMAJA = int//angka
-          DEWASA = int //angka
-          ORANG TUA = int//angka
DESKRIPTIF :
1.       Inputka data bayi,balita,anak,remaja,dewasa,orang tua
2.       Tampil hasil
3.       selesai



<!doctype html>
<html>
                <title>Belajar Javascript || percabangan if </title>
                </head>
                <body>
                <script type= "text/javascript">
                                function cek()
                                {
                                                var nilai;
                                                usia = 8;
                                               
                                                if(usia <=2)
                                                {
                                                                alert("KETERANGAN = BAYI ")
                                                                document.write("KRITERIA = TDK PRODUKTIF");
                                                }else if(usia<=5)
                                                {
                                                                alert("KETERANGAN = BALITA ")
                                                                document.write("KRITERIA=TDK PRODUKTIF");
                                                }else if(usia<=12)
                                                {
                                                                alert("KETERANGAN = ANAK")
                                                                document.write("KRITERIA = PENDIDIKAN");
                                                }else if(usia<=18)
                                                {
                                                                alert("KETERANGAN = REMAJA")
                                                                document.write("KRITERIA = PENDIDIKAN");
                                                }else if(usia<=25)
                                                {
                                                                alert("KETERANGAN=DEWASA")
                                                                document.write("KRITERIA = PRODUKTIF");
                                                }else {(usia>=26)
                                                                alert("KETERANGAN = ORANG TUA")
                                                                document.write("KRITERIA = PRODUKTIF");
                                                }
                                }
                                </script>
                                <input type = "button" value="cek" onclick="cek()">
                                </body>
</html>


                                                

Jumat, 08 September 2017

Tugas Alpo Flowchart

Nama : Ayu Wulandari
Nim : 1117101492
Mata Kuliah : Alpro

Tugas 3

Flowchart
Kalimat Deskriptif
  1. Algoritma Menghitung_jumlah
{Menhitung jumlah dengan persamaan (A+B)*C}
  1. Deklarasi
A = real // angka
B = real // angka
C = real // angka
P = Int // angka
  1. Deskripsi

  • Hitulah dengan persamaan (A+B)*C
  • Tampilkan hasil
  • Selesai

REKAYA PERANGKAT LUNAK

REKAYASA PERANGKAT LUNAK Ayu Wulandari 1117101492 Awulandari780@gmail.com 1. Tahapan umum pengembangan perangkat lunak. Layan...