static void Main() { Worker worker1 = new Employee("123"); worker1.Work(2); Worker worker2 = new Robot("111", 1); worker2.Work(2); Employee employee = new Employee("321"); employee.Sleep(); employee.Work(3); Robot robot = new Robot("222", 2); robot.Work(3); Console.WriteLine(robot.Capacity); Console.WriteLine(robot.CurrentPower); robot.Recharge(); Console.WriteLine(robot.Capacity); Console.WriteLine(robot.CurrentPower); robot.Work(1); Console.WriteLine(robot.Capacity); Console.WriteLine(robot.CurrentPower); robot.Work(4); Console.WriteLine(robot.Capacity); Console.WriteLine(robot.CurrentPower); }
static void Main() { Employee employee = new Employee("874"); Robot robot = new Robot("342", 50); robot.CurrentPower = 30; employee.Work(8); robot.Work(20); Console.WriteLine(robot.CurrentPower); }
static void Main() { Robot rob = new Robot("12345Robby", 10); rob.Recharge(); rob.Work(3); Employee ben = new Employee("1234BENNY"); ben.Sleep(); ben.Work(3); }
static void Main() { Employee employee = new Employee("Mila Akexieva"); Robot robot = new Robot("R500", 80); RechargeStation rechargeStation = new RechargeStation(); rechargeStation.Recharge(robot); employee.Work(8); robot.Work(24); Console.WriteLine(robot.CurrentPower); }
static void Main() { Employee employee = new Employee("18061017"); employee.Work(8); Robot stancho = new Robot("0013", 30); stancho.Recharge(); stancho.Work(8); stancho.Work(8); stancho.Work(8); stancho.Work(8); }
static void Main() { Employee employee = new Employee("Viktor"); Robot robot = new Robot("Z3434342", 20); employee.Work(8); employee.Sleep(); robot.Recharge(); robot.Work(16); }