コード例 #1
0
 public void Display()
 {
     ProductsCart.Display();
     this.DoTotal();
     PaymentDetails.Display();
     Console.WriteLine($"\tSubtotal: ${Subtotal}\n");
     Console.WriteLine($"\tSales Tax @{TaxRate * 100}% : ${SalesTax}\n");
     Console.WriteLine($"\tGrand Total: ${GrandTotal}\n");
 }