Jurnal TI - ATM


software ATM yang kelompok 33 buat adalah suatu software sederhana yang berbentuk interface yang memungkinkan pengguna untuk menarik sejumlah uang serta menampilkan jumlah saldo.


Flowchart Software ATM

 
Algoritma tugas2ATM                                                                                     
{membuat sebuah interface ATM}
Deklarasi
inputtarikan, inputpilihan, inputpin, pemilik = String
saldo = Integer(0)
pins, pilihans, tarikans = Boolean
             
Deskripsi
START                       
                        while (pins = true)
                                    read inputpin
                                   
                                    if (inputpin = "111111")then
                                                pemilik = "MR. TAJIR"
                                                saldo = 100000000
                                                pins = false
                                                                                   
                                    elseif(inputpin = "222222")then
                                                pemilik = "MR. KTT"
                                                saldo = 50000000
                                                pins = false
                                                                                   
                                    elseif(inputpin = "333333"))then
                                                pemilik = "MR. SIMPLE"
                                                saldo = 999999999
                                                pins = false
                                   
                                    else write("MAAF, PIN NYA SALAH BROWWWW")
                                                pins = true
                                               
            while (pilihans = true)then
            read inputpilihan
                                   
                        if (inputpilihan = "1"))then
                                               
                        write("PILIH JUMLAH TARIKAN , " pemilik)  
                                               
            while (tarikans = true)then
            read inputtarikan
                                                           
                        if (inputtarikan = "1"))then
                        write("NAMA PEMILIK : " pemilik)
                        write("DEBIT        : RP.100000" )
                        write("SISA SALDO   : RP."  (saldo-100000)                                                                       tarikans = false
                                                           
                        elseif(inputtarikan = "2"))then
                        ("NAMA PEMILIK : " pemilik)
                        write("DEBIT        : RP.200000" )
                        write("SISA SALDO   : RP." (saldo-200000)
                        tarikans = false
                                                           
                        elseif(inputtarikan = "3"))then
                        write("NAMA PEMILIK : " pemilik)
                        write("DEBIT        : RP.500000" )
                        write("SISA SALDO   : RP." (saldo-500000))                                                                      tarikans = false
                                                           
                        elseif(inputtarikan = "4"))then
write("NAMA PEMILIK : " pemilik)
write("DEBIT        : RP.1000000" )
write("SISA SALDO   : RP." (saldo-1000000))
tarikans = false                       
                                   
else tarikans = true
                                    pilihans = false
                                   
elseif(inputpilihan = "2"))then
write("NAMA PEMILIK : " pemilik)
write("SALDO ANDA   : RP."  (saldo))
pilihans = false
                                   
elseif(inputpilihan = "3"))then
            pilihans = false
                                   
else pilihans = true
STOP

0 komentar: