//-------------------------------------------- ZAKAT FITRAH --------------------------------------------// private static void ZakatFitrah() { Dulu ku; ku = new Dulu(); Console.Clear(); Judul(); Console.ForegroundColor = ConsoleColor.Green; Console.WriteLine("\t[Daftar Data]"); Console.ForegroundColor = ConsoleColor.DarkYellow; Console.WriteLine("\t----------------------------------------------------------"); Console.ForegroundColor = ConsoleColor.DarkCyan; Console.WriteLine("\t[1] Nama Kepala Keluarga\t\t\t =>"); Console.WriteLine("\t[2] Jumlah Anggota Keluarga\t\t\t =>"); Console.WriteLine("\t[3] Harga Beras 1 Kg \t\t\t\t =>"); Console.ForegroundColor = ConsoleColor.DarkYellow; Console.WriteLine("\t----------------------------------------------------------"); Console.WriteLine(); Console.ForegroundColor = ConsoleColor.Green; Console.WriteLine("\t[Input Data]"); Console.ForegroundColor = ConsoleColor.DarkYellow; Console.WriteLine("\t----------------------------------------------------------"); Console.ForegroundColor = ConsoleColor.DarkCyan; Console.Write("\t=> Nama Kepala Keluarga\t\t\t[1] : "); string FitrahNama = Console.ReadLine(); Console.Write("\t=> Jumlah Anggota Keluarga\t\t[2] : "); int Jumlah = Convert.ToInt32(Console.ReadLine()); double FitrahBeras = Jumlah * 2.5; Console.Write("\t=> Harga Beras 1 Kg\t\t\t[3] : Rp. "); int Harga = Convert.ToInt32(Console.ReadLine()); double FitrahUang = Harga * 2.5; //-------------------------------------------- OUTPUT --------------------------------------------// Console.Clear(); Judul(); Console.ForegroundColor = ConsoleColor.Green; Console.WriteLine("\t[Output Data]"); Console.ForegroundColor = ConsoleColor.DarkYellow; Console.WriteLine("\t----------------------------------------------------------"); Console.ForegroundColor = ConsoleColor.DarkCyan; Console.WriteLine("\t=> Nama Kepala Keluarga\t\t[1] : {0} ", FitrahNama); Console.WriteLine("\t=> Zakat Yang Wajib Dikeluarkan\t[2] : {0} Kg Beras", FitrahBeras); Console.ForegroundColor = ConsoleColor.DarkYellow; Console.WriteLine("\t----------------------------------------------------------"); Console.WriteLine(); Console.ForegroundColor = ConsoleColor.Green; Console.WriteLine("\t\t\t\tATAU"); Console.WriteLine(); Console.ForegroundColor = ConsoleColor.DarkYellow; Console.WriteLine("\t----------------------------------------------------------"); Console.ForegroundColor = ConsoleColor.DarkCyan; Console.WriteLine("\t=> Uang Pengganti Beras Sebesar\t[3] : Rp. {0}", FitrahUang); Console.ForegroundColor = ConsoleColor.DarkYellow; //-------------------------------------------- OUTPUT CLASS & OBJEK --------------------------------------------// Console.WriteLine(); ku.Sudah(); Console.ForegroundColor = ConsoleColor.DarkYellow; Console.WriteLine("\t----------------------------------------------------------"); Console.ForegroundColor = ConsoleColor.Cyan; Console.WriteLine("\t\t Enter Untuk Kembali Ke Menu Utama"); Console.ReadLine(); Console.Clear(); MenuUtama(); }
//-------------------------------------------- ZAKAT MAAL --------------------------------------------// private static void ZakatMaal() { Dulu ku; ku = new Dulu(); Console.Clear(); Judul(); Console.ForegroundColor = ConsoleColor.Green; Console.WriteLine("\t[Daftar Data]"); Console.ForegroundColor = ConsoleColor.DarkYellow; Console.WriteLine("\t-------------------------------------------------------------"); Console.ForegroundColor = ConsoleColor.DarkCyan; Console.WriteLine("\t[1] Nama Anda\t\t\t\t\t =>"); Console.WriteLine("\t[2] Uang Anda Saat Ini\t\t\t\t =>"); Console.WriteLine("\t[3] Saldo Tabungan Anda\t\t\t\t =>"); Console.WriteLine("\t[4] Nominal Properti Anda\t\t\t =>"); Console.WriteLine("\t[5] Total Hutang Anda (Jika Ada)\t\t =>"); Console.ForegroundColor = ConsoleColor.DarkYellow; Console.WriteLine("\t-------------------------------------------------------------"); Console.WriteLine(); Console.ForegroundColor = ConsoleColor.Green; Console.WriteLine("\t[Input Data]"); Console.ForegroundColor = ConsoleColor.DarkYellow; Console.WriteLine("\t-------------------------------------------------------------"); Console.ForegroundColor = ConsoleColor.DarkCyan; Console.Write("\t=> Nama Anda\t\t\t\t[1] : "); string MaalNama = Console.ReadLine(); Console.Write("\t=> Uang Anda Saat Ini\t\t\t[2] : Rp. "); int Sekarang = Convert.ToInt32(Console.ReadLine()); Console.Write("\t=> Saldo Tabungan Anda\t\t\t[3] : Rp. "); int Tabungan = Convert.ToInt32(Console.ReadLine()); Console.Write("\t=> Nominal Properti Anda\t\t[4] : Rp. "); int Properti = Convert.ToInt32(Console.ReadLine()); Console.Write("\t=> Total Hutang Anda (Jika Ada)\t\t[5] : Rp. "); int Hutang = Convert.ToInt32(Console.ReadLine()); int Total = (Sekarang + Tabungan + Properti) - Hutang; Console.ForegroundColor = ConsoleColor.DarkYellow; Console.WriteLine("\t-------------------------------------------------------------"); Console.WriteLine(); Console.ForegroundColor = ConsoleColor.Green; Console.WriteLine("\t[Total & Hitung Nishab]"); Console.ForegroundColor = ConsoleColor.DarkYellow; Console.WriteLine("\t-------------------------------------------------------------"); Console.ForegroundColor = ConsoleColor.DarkCyan; Console.WriteLine("\t=> Total Harta Anda\t\t\t: Rp. {0}", Total); Console.Write("\t=> Harga 1 gram Emas 24 Karat\t\t: Rp. "); int Emas = Convert.ToInt32(Console.ReadLine()); int Nishab = Emas * 85; Console.WriteLine("\t=> Nishab Zakat (85 gram Emas)\t\t: Rp. {0}", Nishab); Console.ForegroundColor = ConsoleColor.DarkYellow; Console.WriteLine("\t-------------------------------------------------------------"); Console.ForegroundColor = ConsoleColor.Cyan; Console.WriteLine("\t\t\tEnter Untuk Melihat Output"); Console.ReadLine(); //-------------------------------------------- OUTPUT --------------------------------------------// if (Total >= Nishab) { Console.Clear(); Judul(); Console.ForegroundColor = ConsoleColor.Green; Console.WriteLine("\t[Output Data]"); Console.ForegroundColor = ConsoleColor.DarkYellow; Console.WriteLine("\t----------------------------------------------------------"); Console.ForegroundColor = ConsoleColor.DarkCyan; Console.WriteLine("\t=> Nama Anda\t: {0}", MaalNama); double zakat = Total * 0.025; Console.WriteLine("\t=> Status\t: Wajib Zakat"); Console.WriteLine("\t=> Wajib Zakat\t: Rp. {0}", zakat); //-------------------------------------------- OUTPUT CLASS & OBJEK --------------------------------------------// Console.WriteLine(); ku.Sudah(); Console.ForegroundColor = ConsoleColor.DarkYellow; Console.WriteLine("\t----------------------------------------------------------"); Console.ForegroundColor = ConsoleColor.Cyan; Console.WriteLine("\t\t\tEnter Untuk Kembali Ke Menu Utama"); Console.ReadLine(); Console.Clear(); MenuUtama(); } else { Console.Clear(); Judul(); Console.ForegroundColor = ConsoleColor.Green; Console.WriteLine("\t[Output Data]"); Console.ForegroundColor = ConsoleColor.DarkYellow; Console.WriteLine("\t----------------------------------------------------------"); Console.ForegroundColor = ConsoleColor.DarkCyan; Console.WriteLine("\t=> Nama Anda\t: {0}", MaalNama); Console.WriteLine("\t=> Status\t: Tidak Wajib Zakat"); Console.WriteLine(); //-------------------------------------------- OUTPUT CLASS & OBJEK --------------------------------------------// Console.WriteLine(); ku.Sudah(); Console.ForegroundColor = ConsoleColor.DarkYellow; Console.WriteLine("\t----------------------------------------------------------"); Console.ForegroundColor = ConsoleColor.Cyan; Console.WriteLine("\t\t\tEnter Untuk Kembali Ke Menu Utama"); Console.ReadLine(); Console.Clear(); MenuUtama(); } }