Skip to main content

Posts

Showing posts with the label CS411

CS411 Assignment 1 Solution 2021

 CS411-Assignment 1 Solution 2021 using System; namespace cs411 {     class Zakat     {         public virtual void zakat_Calculation(int amount)         {             Console.WriteLine("Calculating Rupees Zakat");             Console.WriteLine("Total Zakat to be Paid : " + amount * 0.025);         }     }     class Gold_Zakat : Zakat     {         public override void zakat_Calculation(int amount)         {             float one_ounce_amount = 1821;                         if (((float)amount / one_ounce_amount) >= 3.08)             {                 // Because Zakat is on 7.5 tola Gold and 3.08 ounce                  // is equal to 7.5 tola Gold.                 Console.WriteLine("Calculating Gold Zakat");                 Console.WriteLine("Total Zakat to be Paid : " + amount * 0.025);             }             else             {                 Console.WriteLine("Your Amount is not enough for Gold Zakat");             }