static void Main(string[] args) { //Exercise 1,2 and 3: Console.WriteLine("----------------------------------------------------------"); Manager managerPerson = new Manager("William", "Damian", Manager.Role.Manager, 3500); managerPerson.AddBonus(500); managerPerson.GetSalary(); managerPerson.PrintInfo(); Console.WriteLine($"The manager:{managerPerson.FirstName}, has salary: {managerPerson.GetSalary()}$"); Console.WriteLine("----------------------------------------------------------"); SalesPerson salePerson = new SalesPerson("Jack", "Connor"); salePerson.SetAddSuccessRevenue(2500); salePerson.GetSalary(); salePerson.PrintInfo(); Console.WriteLine($"Sale Person: {salePerson.FirstName}, has salary: {salePerson.GetSalary()}$ "); Console.WriteLine("----------------------------------------------------------"); Employee employeePerson = new Employee(); employeePerson.FirstName = "James"; employeePerson.LastName = "Reece"; employeePerson.EmpRole = Employee.Role.Other; employeePerson.SalaryEmp(400); employeePerson.PrintInfo(); Console.WriteLine($"Other employee: {employeePerson.FirstName},has salary: {employeePerson.SalaryEmp(400)}$"); Console.ReadLine(); }
static void Main(string[] args) { SalesPerson Darko = new SalesPerson() { FirstName = "Darko", LastName = "Stojanovski", Salary = 1000, Role = Role.Sales }; Manager Dejan = new Manager() { FirstName = "Dejan", LastName = "Stefanovski", Salary = 3000 }; Employee Kristina = new Employee() { FirstName = "Kristina", LastName = "Mladenova", Salary = 800, Role = Role.Other }; Darko.AddSuccessRevenue(1200); Dejan.AddBonus(1800); Darko.PrintInfo(); Dejan.PrintInfo(); Kristina.PrintInfo(); Console.ReadLine(); }
static void Main(string[] args) { Employee[] company = new Employee[] { new Menager("Bob", "Bobski"), new SalesPerson("John", "Dow"), new SalesPerson("Rick", "Brown") }; Menager bob = (Menager)company[0]; bob.AddBonus(5000); Console.WriteLine(bob.GetSalary()); bob.PrintInfo(); SalesPerson john = (SalesPerson)company[1]; john.AddSuccessRevenue(5500); Console.WriteLine(john.GetSalary()); john.GetSalary(); john.PrintInfo(); Console.ReadLine(); }
static void Main(string[] args) { Manager igor = new Manager("Igor", "Mitkovski", "Finance", 7500); SalesPerson dejan = new SalesPerson("Dejan", "Ivkovski"); //dejan.AddRevenue(2600); Console.WriteLine("{0:C}", dejan.GetSalary()); dejan.PrintInfo(); igor.AddBonus(); igor.PrintInfo(); Console.ReadLine(); }
static void Main(string[] args) { // Employee emp = new Employee() { FirstName = "Bob", LastName = "Bobsky", Salary = 600, Role = Role.Other }; SalesPerson sale = new SalesPerson("Bill", "Billsky", 1500); sale.ExtendSuccessSaleRevenue(2000); //emp.PrintInfo(); sale.PrintInfo(); //Console.WriteLine("Employee Salary: " + emp.GetSalary()); Console.WriteLine("Sales Person Salary: " + sale.GetSalary()); Console.ReadLine(); }
static void Main(string[] args) { Employee[] company = new Employee[] { new Contractor("Bob", "Bobert"), new Contractor("Rick", "Rickert"), new Manager("Mona", "Monalisa"), new Manager("Igor", "Igorsky"), new SalesPerson("Lea", "Leova"), }; CEO ceoName = new CEO("Ron", "Ronsky", company); Console.WriteLine("CEO:"); ceoName.PrintInfo(); ceoName.AddSharesPrice(1400); var getSalary = ceoName.GetSalary(); Console.WriteLine($"Salary of CEO is:{getSalary}"); ceoName.PrintEmployees(company); Console.WriteLine("------------------------------------------------"); Manager manager = new Manager("Bob", "Bobsky"); manager.PrintInfo(); var bonusF = manager.AddBonus(1500); Console.WriteLine($"The bonus is: {bonusF}"); var mSalary = manager.GetSalary(); Console.WriteLine($"The salary with bonus is: {mSalary}"); Console.WriteLine("------------------------------------------------"); SalesPerson salesPer = new SalesPerson("Radmila", "Sokolovska"); salesPer.PrintInfo(); Console.WriteLine(salesPer.GetSalary()); Console.WriteLine("------------------------------------------------"); Contractor contractor = new Contractor("Petre", "Petreski"); contractor.PrintInfo(); Console.Write("Salary is: "); Console.WriteLine(contractor.GetSalary()); Console.ReadLine(); }
static void Main(string[] args) { Employee bob = new Employee() { FirstName = "Bob", LastName = "Bobski", Role = Role.Sales }; //bob.PrintInfo(); SalesPerson john = new SalesPerson("John", "Doe"); john.PrintInfo(); Console.WriteLine(john.GetSalary()); john.AddSuccessRevenue(4000); Console.WriteLine(john.GetSalary()); Console.ReadLine(); }
static void Main(string[] args) { Employee emp = new Employee("Bob", "Bobsky"); emp.Role = Role.Other; SalesPerson sale = new SalesPerson("Bill", "Billsky"); emp.GetSalary(666); Manager manager = new Manager("Marija", "Prosheva", 300); sale.AddSuccessRevenue(2000); Console.WriteLine(emp.PrintInfo()); Console.WriteLine(sale.PrintInfo()); Console.WriteLine("Employee Salary: " + emp.GetSalary(666)); Console.WriteLine("Sales Person Salary: " + sale.GetSalary(666)); Console.WriteLine("Manager Salary :" + manager.GetSalary(444)); Console.ReadLine(); }
static void Main(string[] args) { Manager manager = new Manager("Ivana", "Stefanovska"); manager.PrintInfo(); manager.AddBonus(3000); Console.WriteLine("Salary: {0}", manager.GetSalary()); Console.WriteLine("------------------------------------"); SalesPerson sales01 = new SalesPerson("Random1", "Random2"); sales01.PrintInfo(); sales01.AddSuccessSaleRevenue(1500); Console.WriteLine("Salary: {0}", sales01.GetSalary()); Console.ReadLine(); }
static void Main(string[] args) { Manager manager = new Manager("Bob", "Bobsky"); manager.PrintInfo(); manager.AddBonus(3000); Console.WriteLine("Salary: {0}", manager.GetSalary()); Console.WriteLine("------------------------------------"); SalesPerson sales01 = new SalesPerson("John", "Snow"); sales01.PrintInfo(); sales01.ExtendSuccessSaleRevenue(1500); Console.WriteLine("Salary: {0}", sales01.GetSalary()); Console.ReadLine(); }
static void Main(string[] args) { Employee theEmployee = new Employee("Poppy", "Willson", Role.Other, 400); theEmployee.PrintInfo(); SalesPerson salesEmployee = new SalesPerson("John", "Doe", 500); salesEmployee.AddSuccessRevenue(2000); salesEmployee.PrintInfo(); Manager managerEmployee = new Manager("Emily", "Johnson", 2000); managerEmployee.AddBonus(500); managerEmployee.PrintInfo(); Console.ReadLine(); }
static void Main(string[] args) { Employee emp = new Employee() { FirstName = "Bob", LastName = "Bobsky", Salary = 600, Role = Role.Other }; SalesPerson sale = new SalesPerson("Bill", "Billsky", 1500); Manager mng = new Manager("Ron", "Ronsky", 1500); sale.ExtendSuccessSaleRevenue(2000); mng.AddBonus(400); emp.PrintInfo(); sale.PrintInfo(); mng.PrintInfo(); Console.WriteLine("Employee Salary: " + emp.GetSalary()); Console.WriteLine("Sales Person Salary: " + sale.GetSalary()); Console.WriteLine("Manager Salary: " + mng.GetSalary()); Console.ReadLine(); }
static void Main(string[] args) { //FirstExercise Employee randomEmployee = new Employee("Jana", "Janevska", Role.Retailer, 700); randomEmployee.PrintInfo(); //Secondexercise SalesPerson saleEmploy = new SalesPerson("Jovana", "Jovanovska"); saleEmploy.AddSuccessRevenue(); saleEmploy.PrintInfo(); //ThirdExercise Manager managerEmploy = new Manager("Stefani", "Stefanovska", 3000); managerEmploy.AddBonus(200); managerEmploy.PrintInfo(); Console.ReadLine(); }