private double earLenght;
public Rabbit(string name, double weight, double earLenght)
this.earLenght = earLenght;
public Book(string name, int year, bool permission)
this.permission = permission;
if (this.year >= 2000 && this.permission == true)
public static void Out(Book[] books)
for (int i = 0; i < books.Length; i++)
if (books[i].ShouldStay())
Console.WriteLine(books[i].GetName());
static void Main(String[] args)
Rabbit rab1 = new Rabbit("Rodger", 30.0, 30.0);
for(int i = 0; i < 251; i++)
Console.WriteLine("Please enter your id");
int id = int.Parse(Console.ReadLine());
Console.WriteLine("Please enter your number of years working in the job");
int numYears = int.Parse(Console.ReadLine());
Console.WriteLine("Please enter the number of hours you worked this month");
int numHours = int.Parse(Console.ReadLine());
Worker w = new Worker(id, senior, numYears,numHours);
w.Print(id, senior, numYears, numHours);
public Worker(int id, bool senior, int numYears, int numHours)
public int Salary(int id, bool senior, int numYears, int numHours)
Worker w = new Worker(id, senior, numYears, numHours);
return 55 * w.GetNumHours();
return 45 * w.GetNumHours();
public void Print(int id, bool senior, int numYears, int numHours)
Worker w = new Worker(id, senior, numYears, numHours);
Console.WriteLine(Salary(id, senior, numYears, numHours));
Console.WriteLine(w.GetId());