Exemple #1
0
        static void Main(string[] args)
        {
            IngressoVip ingresso = new IngressoVip();

            ingresso.IngressoPreco = 50f;
            ingresso.imprimirValor();
            ingresso.JuntarValor();

            System.Console.WriteLine($"A diferença de preço dos ingressos é: {ingresso.valorAdicional}");
        }
        static void Main(string[] args)
        {
            IngressoVip bilhete = new IngressoVip();

            bilhete.IngressoPreco = 23.90f;
            bilhete.ImprimirValor();
            bilhete.AdicionarValor();

            System.Console.WriteLine("A diferença de valores é: " + bilhete.valorAdicional);
        }
Exemple #3
0
        static void Main(string[] args)
        {
            IngressoVip passagem = new IngressoVip();

            passagem.IngressoPreco = 10.00f;
            passagem.ImprimirValor();
            passagem.AdicionarValor();

            System.Console.WriteLine("A diferença de valores é: " + passagem.valorAdicional + "reais.");
        }
        static void Main(string[] args)
        {
            IngressoVip bilhete = new IngressoVip();

            bilhete.Valor          = 100f;
            bilhete.ValorAdicional = 95.75f;
            bilhete.ImprimirValor();
            bilhete.ImprimirValorVip();
            bilhete.MostrarDiferença();
        }
Exemple #5
0
        static void Main(string[] args)
        {
            IngressoVip seila = new IngressoVip();

            seila.IngressoPreco = 23.90f;
            seila.ImprimirValor();
            seila.AdicionarValor();

            System.Console.WriteLine("A diferença de valores é: " + seila.valorAdicional);
        }
Exemple #6
0
        static void Main(string[] args)
        {
            IngressoVip bilhete = new IngressoVip();

            bilhete.Valor          = 20f;
            bilhete.ValorAdicional = 15.50f;
            bilhete.ImprimirValor();
            bilhete.MostrarValorVip();

            System.Console.WriteLine($"A diferença entre os valores é de R$ {bilhete.ValorAdicional}");
        }
Exemple #7
0
        static void Main(string[] args)
        {
            IngressoVip ticket = new IngressoVip();

            ticket.TaxaAdicional = 100f;
            ticket.Valor         = 35.00f;
            ticket.ImprimirValor();
            ticket.ValorTotal();

            System.Console.WriteLine($"A diferença de Valores é: {ticket.TaxaAdicional}");
        }