Exemple #1
0
        static void CalcularSal(string es, Gerente obj)
        {
            Console.Clear();
            int a;

            Console.WriteLine(es + "\n\n\nIndique o número de horas que trabalhou: ");
            a = int.Parse(Console.ReadLine());
            Console.WriteLine("O salário bruto sem subsídios é: " + obj.CalSal(a));
        }
Exemple #2
0
 public Gerente(Gerente g)
 {
     Id            = g.Id;
     Nome          = g.Nome;
     DataNasc      = new Data(g.DataNasc);
     EMail         = g.EMail;
     ValorHora     = g.ValorHora;
     Especialidade = g.Especialidade;
     Extensao      = g.Extensao;
 }
Exemple #3
0
 static void idadegerente(string es, Gerente obj)
 {
     Console.Clear();
     Console.Write(es + "\n\n\nO " + obj.Nome + " tem " + obj.DataNasc.Idade(obj.DataNasc.now));
 }
Exemple #4
0
 static void valorhoragerente(string es, Gerente obj)
 {
     Console.Clear();
     Console.Write(es + "\n\n\nNovo Valor Hora: ");
     obj.ValorHora = int.Parse(Console.ReadLine());
 }