The Employee Class and the Company Class
class employee
{public employee(String n, int age, double sal, String title){}
private String name;
private int age;
private double salary;
private String title;
public String getName(){}
public int getAge(){}
public double getSalary();
public String getTitle(){}
public void increaseAge(); // increases by 1 year
public void increaseSalary(double percent){}
}
class company
{public company();
private employee[] ar = new employee[100];
private int ct = 0;
public void printEmployees(){}
private int find(String n){} // returns index or -1 if not there
public void addEmployee(String n, int a, double sal, String t){}
public void increaseAge(String n){}
public void increaseSal(String n, double p){}
public void fire(String n){} // remove from array
}
After you write the member functions and have the 2 classes compiling correctly test them with a driver program.