Menghitung total pendapatan Hotel Dengan Java NetBeans
Source Code : package hotel; /** * * @author kamu */ import java.io.*; public class UAS { /** * @param args the command line arguments */ public static void main(String[] args) throws IOException { String nama="",kamar=""; int jenis=0,status=0,lama=0,tarif=0; double diskon=0,bayar=0, pajak=0; BufferedReader br = new BufferedReader(new InputStreamReader (System.in)); //input System.out.println("--**-- Sistem Informasi Hotel ABC --**--"); System.out.print("Nama Pelanggan \t\t\t: "); nama = br.readLine(); System.out.println("\nPilih Kategori Kamar"); System.out.println("1. VIP Rp 500.000/hari"); System.out.println("2. Menengah Rp 250.000/hari"); System.out.println("3. Ekonomi Rp 150.000/hari"); System.out.print("Jenis kama