static void Main(string[] args) { Accauntant acc = new Accauntant(); var senior = Position.Senior; Console.WriteLine(acc.AskForBonus(senior, 50) ? "Take premium" : "Don`t take premium"); Console.ReadKey(); }
static void Main(string[] args) { Accauntant accauntant = new Accauntant(); int hours = 300; accauntant.Salary = 10000.0; Post post = Post.Engineer; accauntant.check = accauntant.AskForBonus(post, hours); accauntant.ShowSalary(); Console.ReadLine(); }
static void Main(string[] args) { Accauntant accauntant = new Accauntant(); if (accauntant.AskForBonus(Jobs.BigBoss, 140)) { Console.WriteLine("TRUE"); } else { Console.WriteLine("FALSE"); } Console.ReadKey(); }
private static void Info(Worker worker, int hours) { Console.WriteLine(worker); Console.WriteLine("Общее число рабочих часов: " + hours); Console.WriteLine("Бонусы: " + Accauntant.AskForBonus(worker, hours)); }