Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
1.6 kB
50
Indexable
Never
/*
 * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
 * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Main.java to edit this template
 */
package BankProject;

import java.util.Scanner;

/**
 *
 * @author erianda
 */
public class ATM {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        Scanner sn = new Scanner(System.in);
        Account ac = new Account();
        
        ac.setNamaNasabah("Aldo Erianda");
        ac.setNorekening("12349876");
        ac.setSaldo(10000000);
        ac.setPin(123456);
        
        /*looping
        Pilih Bahasa
        1. Bahasa Indonesia
        2. Bahasa Inggris
        Pilih :

        Masukan PIN
        
        teruslakukan perbandingan
        .isEquals(ac.getPin){
        ac.printAtm();
        }

        Pilih transaksi yang akan dilakukan
        1. Informasi Saldo
        2. Penarikan Tunai
        3. Transfer
        4. Setor Tunai

        Pilihan :

        System.out.println("Saldo : Rp "+ac.getSaldo());
        
        ac.setTariktunai(500000);
        
        ac.setSetortunai(600000);
        */
        
        
        System.out.println("Saldo : Rp "+ac.getSaldo());
        
        ac.setTariktunai(500000);
        
        System.out.println("Saldo : Rp "+ac.getSaldo());
        
        ac.setSetortunai(600000);
        
        System.out.println("Saldo : Rp "+ac.getSaldo());
        
    }
    
}