Lab2_113(2) - o public boolean addEmployee(Employee emp) o...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
KSU / CCIS / CS DEPARTMENT CSC-113, SPRING 2010 LAB 2 – ARRAY OF OBJECTS Create class Employee including the following: - Members: o Integer id o String name o Double salary - Methods o public Employee() o public Employee(int ID, double Salary, String Name) o Getters o Setters Create class Company including the following: (the max number of employees should be 50) - Members: o String name o Double capital o Employee[] arrayEmp - Methods o public Company()
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: o public boolean addEmployee(Employee emp) o public Boolean isEmpty() o public Boolean isFull() o public int search(int Id) o public int search(Employee emp) Write a main class to test your program. The program must be a menu-driven which print and execute the following: 1> Add an employee. 2> Search for an employee in the company and print employee details. 3> Is the company full? 4> Is the company empty?...
View Full Document

This note was uploaded on 08/18/2011 for the course COMPUTER S CSC 113 taught by Professor Dr.safwanqasem during the Spring '11 term at King Saud University.

Ask a homework question - tutors are online