Пример #1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Welcome to Cab Invoice Generator!");
            InvoiceGenerator ig   = new InvoiceGenerator(RideType.NORMAL);
            double           fare = ig.CalculateFare(2.0, 5);

            Console.WriteLine($"Total Fare for the journey : {fare}");
        }
Пример #2
0
        /// <summary>
        /// Defines the entry point of the application.
        /// </summary>
        /// <param name="args">The arguments.</param>
        public static void Main(string[] args)
        {
            Console.WriteLine("Welcome to Cab Invoice Program");
            InvoiceGenerator invoiceGenerator = new InvoiceGenerator();
            double           fare             = invoiceGenerator.CalculateFare(2.0, 5);

            Console.WriteLine($"Fare: {fare}");
        }
Пример #3
0
        static void Main(string[] args)
        {
            Console.WriteLine("Welcome to Cab Invoice Generator");
            InvoiceGenerator invoiceGenerator = new InvoiceGenerator(RideType.NORMAL);
            double           fare             = invoiceGenerator.CalculateFare(2.0, 5);

            Console.WriteLine($"Fare : {fare}");
        }
Пример #4
0
        static void Main(string[] args)
        {
            Console.WriteLine("|**********************************************************************************************************************|");
            Console.WriteLine("|===================================== WELCOME TO CAB INVOICE GENERATOR ===============================================|");
            Console.WriteLine("|______________________________________________________________________________________________________________________|");

            InvoiceGenerator invoiceGenerator = new InvoiceGenerator(RideType.NORMAL);
            double           fare             = invoiceGenerator.CalculateFare(2.0, 5);

            Console.WriteLine($"Fare =  +{ fare}");
        }
Пример #5
0
 static void Main(string[] args)
 {
     /*
      * Console.WriteLine("Welcome To Cab Invoice Generator");
      * Console.WriteLine("================================");
      * InvoiceGenerator invoiceGenerator = new InvoiceGenerator(RideType.PREMIUM);
      * double fare = invoiceGenerator.CalculateFare(2.0, 5);
      * Console.WriteLine($"Fare : {fare}");
      */
     InvoiceGenerator invoiceGenerator = new InvoiceGenerator();
     double           fare             = invoiceGenerator.CalculateFare(2.0, 5);
 }