Posts

Showing posts from October, 2018

UTS PWeb

Image
Nama: Donny Fitrado NRP: 05111740000171 Kelas: PWeb C Kali ini, saya akan membagikan hasil UTS PWeb saya yaitu membuat E-Rapor untuk prestasi siswa. Berikut ini adalah source codenya: 1. config.php <?php $server = "localhost"; $user = "root"; $password = ""; $nama_database = "pendaftaran_siswa"; $db = mysqli_connect($server, $user, $password, $nama_database); if( !$db ){ die("Gagal terhubung dengan database: " . mysqli_connect_error()); } ?> 2. index.php <!DOCTYPE html> <html> <head> <title>E-Rapor Siswa | SMAS Cita Hati</title> </head> <body> <header> <h3>Pendaftaran Prestasi</h3> <h1>SMAS Cita Hati</h1> </header> <h4>Menu</h4> <nav> <?php if(isset($_GET['status'])): ?> <p> <?php if($_G...

UTS PBO

Image
Nama: Donny Fitrado NRP: 05111740000171 Kelas: PBO A Class Detector: import java.lang.String; import java.util.Scanner; /** * Sebagai penerima input * * @author Donny Fitrado * 05111740000171 * PBO A */ 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 Datang di E-Parking"); System.out.println("▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒"); jenis_kendaraan = 0; while(jenis_kendaraan != 1 && jenis_kendaraan != 2) { System.out.println(""); System.out.println("Silahkan pilih jenis kendaraan"); Syst...

Tugas PWeb - Billing Air

Nama: Donny Fitrado NRP: 05111740000171 Kelas: PWeb C Pada tugas ini, saya ditugaskan untuk membuat pembayaran air. Berikut ini adalah source codenya: 1. Proof of Payment <!DOCTYPE html> <html> <head> <link rel="stylesheet" type="text/css" href="form.css"> <link href="https://fonts.googleapis.com/css?family=Inconsolata" rel="stylesheet"> <link href="https://fonts.googleapis.com/css?family=Comfortaa" rel="stylesheet"> <title>Bukti Pembayaran</title> </head> <body> <h1>Pembayaran rekening air</h1> <h1>CV. Fitrado Air</h1> <div class="content" style="padding-left: 120px"> <br> <br> <pre><p>Nama : <?php echo $_POST["nama"]; ?></p></pre> ...

Tugas PBO - Tech Support

Image
Nama: Donny Fitrado NRP: 05111740000171 Kelas: PBO A 1. SupportSystem /** * Write a description of class SupportSystem here. * * @author (Donny Fitrado) * @version (8-10-18) */ public class SupportSystem { private InputReader reader; private Responder responder; /** * Creates a technical support system. */ public SupportSystem() { reader = new InputReader(); responder = new Responder(); } /** * Start the technical support system. This will print a * welcome message and enter into a dialog with the user, * until the user ends the dialog. */ public void start() { boolean finished = false; printWelcome(); while(!finished) { String input = reader.getInput(); if(input.startsWith("bye")) { finished = true; } else { String response = responder.generateResponse(); Syst...

Tugas PBO - Membuat Auction System

Image
Nama: Donny Fitrado NRP: 05111740000171 Kelas: PBO A Di tugas kali ini, saya akan membuat simulasi Auction (Exercise 4.14 Objects-First-with-Java-A-Practical-Introduction-Using-BlueJ-David-J-Barnes), dengan class sebagai berikut: 1. Lot /** * Tugas Auction System : Lot * * Donny Fitrado * 05111740000171 * PBO A */ public class Lot { // A unique identifying number. private final int number; //A description of the lot. private String description; // The current highest bid for this lot. private Bid highestBid; /** * Construct a Lot, setting its number and description. * @param number The lot number. * @param description A description of this lot. */ public Lot(int number, String description) { this.number = number; this.description = description; } /** * Attempt to bid for this lot. A successful bid * mu...

Tugas PWeb - Membuat Form Registrasi Laman Berita

Image
Nama: Donny Fitrado NRP: 05111740000171 Kelas: PWeb C Di dalam tugas ini, saya membuat sebuah website berita, dimana orang-orang juga bisa mendaftarkan diri mereka menjadi member di dalam website itu. Hal ini dilakukan dengan menggunakan registration form. html front page laman berita: <!DOCTYPE html> <html> <head> <title>DonNews - Fresh News, Everyday</title> <link rel="stylesheet" href="customweb.css"/> </head> <body> <div class="header"> <div class="menu"> <ul> <li><a href="#">News</a></li> <li><a href="#">Job</a></li> <li><a href="#">Companies</a></li> <li><a href="#">Event</a></li> <li><a href="#"...