示例#1
0
        public void outputData()
        {
            Identitas id = new Identitas();

            Console.Clear();
            id.id();
            ope.Mpbb();

            Console.WriteLine("\n\n ---Data--- \n");
            Console.WriteLine("Luas Tanah : " + ope.lt);
            Console.WriteLine("Nilai Jual Tanah : Rp" + ope.ht);
            Console.WriteLine("Luas Bangunan : " + ope.lb);
            Console.WriteLine("Nilai Jual Rumah : Rp" + ope.hb);


            Console.WriteLine("\n ---Hitung--- \n");
            Console.WriteLine("Nilai Jual Tanah ialah : Rp" + ope.jt);
            Console.WriteLine("Nilai Jual Bangunan ialah : Rp" + ope.jb);
            Console.WriteLine("NJOP dasar ialah : Rp" + ope.njopd);
            Console.WriteLine("\nNJOP PBB adalah : Rp" + ope.njop);
            Console.WriteLine("\nNJKP ialah : Rp" + ope.njkp);
            Console.WriteLine("PBB : Rp" + ope.pbb);
            Console.WriteLine("\n --Jadi besar Pajak Bumi dan Bangunan yang harus dibayarkan ialah : Rp" + ope.pbb + "--");
            Console.ReadKey();
            Environment.Exit(0);
        }
示例#2
0
        static void Main(string[] args)
        {
            Identitas id = new Identitas();

            id.id();
            Console.WriteLine("\n\nMenghitung Tagihan PBB");
            Console.Write("\n \nTekan Enter");
            Console.ReadKey();

            input input = new input();

            input.inputData();
        }
示例#3
0
        public void inputData()
        {
            Identitas id = new Identitas();

a:
            Console.Clear();
            id.id();

            Console.WriteLine(" \n\nInput Data: \n");
            Console.Write("\n Luas Tanah (dalam meter persegi): ");
            inputt = Console.ReadLine();
            while (!float.TryParse(inputt, out lt))
            {
                Console.Clear();
                Console.WriteLine("Masukan anda salah, coba lagi!");
                Console.ReadKey();
                goto a;
            }
            ope.lt = this.lt;
            Console.Write("\n Harga Jual Tanah: Rp");
            inputt = Console.ReadLine();
            while (!float.TryParse(inputt, out ht))
            {
                Console.Clear();
                Console.WriteLine("Masukan anda salah, coba lagi!");
                Console.ReadKey();
                goto a;
            }
            ope.ht = this.ht;
            Console.Write("\n Luas Bangunan (dalam meter persegi): ");
            inputt = Console.ReadLine();
            while (!float.TryParse(inputt, out lb))
            {
                Console.Clear();
                Console.WriteLine("Masukan anda salah, coba lagi!");
                Console.ReadKey();
                goto a;
            }
            ope.lb = this.lb;
            Console.Write("\n Harga Jual Bangunan: Rp");
            inputt = Console.ReadLine();
            while (!float.TryParse(inputt, out lb))
            {
                Console.Clear();
                Console.WriteLine("Masukan anda salah, coba lagi!");
                Console.ReadKey();
                goto a;
            }
            ope.hb = this.hb;
        }