public void Checkout(object currentUser) { double total = 0; foreach (var item in MemberShoppingCart) { total += item.Price; } Console.WriteLine("Thankyou for shopping with us. Your subtotal is $ {0} ", total.ToString()); BronzeMember cali = new BronzeMember(04, "Cali OConnor"); SilverMember caroline = new SilverMember(03, "Caroline OConnor"); SilverMember kevin = new SilverMember(02, "Kevin OConnor"); GoldMember carr = new GoldMember(01, "Carr OConnor"); if (currentUser.ToString() == carr.ToString()) { total = total - (total * .15); Console.WriteLine("Thankyou for shopping with us. Your total after your membership discount is $ {0} ", total.ToString()); } else if (currentUser.ToString() == cali.ToString()) { total = total - (total * 1); Console.WriteLine("Thankyou for shopping with us. Your total after your membership discount is $ {0} ", total.ToString()); } else if (currentUser.ToString() == caroline.ToString()) { total = total - (total * .1); Console.WriteLine("Thankyou for shopping with us. Your total after your membership discount is $ {0} ", total.ToString()); } else if (currentUser.ToString() == kevin.ToString()) { total = total - (total * .1); Console.WriteLine("Thankyou for shopping with us. Your total after your membership discount is $ {0} ", total.ToString()); } }