namespace LaptopApplication {
public void Display (decimal cost)
Console.WriteLine("the totalcost of the laptop is:" + cost);
public void Display(string clothes,string size)
Console.WriteLine("the type of clothes are:"+ clothes);
Console.WriteLine("the size of the clothes are:" + size);
public void Display(decimal price,decimal version)
Console.WriteLine("the price of the laptop:"+ price);
Console.WriteLine("the version of the laptop:" + version);
public decimal Totalcost(decimal price, decimal tax)
decimal totalcost = price * tax;
public static void Main(string[] args)
Checkout checkout = new Checkout();
checkout.Display("shirt","xl");
decimal totalcost= checkout.Totalcost(200,5);
checkout.Display(totalcost);