Skip to main content

Posts

Showing posts from October, 2018

E-Parking Ticket Machine

Pembuatan E-Parking Ticket Machine dengan 3 class Detector : Sebagai penerima input Mechanism : Sebagai penghubung Printing : Sebagai output masing - masing memiliki source code sebagai berikut : Detector Source Code import java.lang.String; import java.util.Scanner; /**  * Sebagai penerima input  *  * @author Satria Ade Veda Karuniawan  * @version 0.1  */ public class Detector {     private int jenis_kendaraan;     private String nopol;     private int durasi;     private String rekening;         private Scanner input;     public Detector()     {         input = new Scanner(System.in);     }         public void MenuInput()     {         System.out.println("▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒");         System.out.println("Selamat Datan...

Technical Support AI

Technical Support - Artificial Intelligence (*From now on, I'll try my best to explain about all of my Project using English) For this project, I made 3 classes to control the Bot Mechanism (Referencing to Objects-First-with-Java-A-Practical-Introduction-Using-BlueJ-David-J-Barnes pages 155) : InputReader Class (Used for detect or to take any user input) SupportSystem Class (As a main function connecting the user input and database) Responder Class (Handling AI-Output and Its role as 'mini' database) Current Version : 1.2 In the future, I'm expecting to have a bigger Responder's Database and would be separated from the Class itself, so it will be easier to make some modification inside the AI's Database and easier to manage. And then i'll try to improve the UX Design inside, so that the user can have a feeling about how 'Human' this AI. InputReader Class In this class, pretty much the same as how the name of the class is writt...

Auction System

Membuat simulasi Auction (Exercise 4.14 Objects-First-with-Java-A-Practical-Introduction-Using-BlueJ-David-J-Barnes), dengan class sebagai berikut : Auction Class Lot Class Bid Class (Class yang harus dilengkapi) Person Class (Class yang harus dilengkapi) Auction Class (sebagai class tempat terjadinya proses Auction) Source Code : import java.util.ArrayList; /**  * Class Utama tempat proses Auction dilakukan  *  * @author Satria Ade Veda Karuniawan  * @version 1.0  */ public class Auction {     private ArrayList<Lot> lots;     private int nextLotNumber;     //Constructor     public Auction()     {         lots = new ArrayList<Lot>();         nextLotNumber = 1;     }     //Mendaftarkan lot baru     public void enterLot(String description)     {         lots.add(new ...