Project Management

  1. Design a class, Employee, with the following members

:empNumber : int
name : String
age : int
salary : double
Employee() [with default values for the properties]
Employee(int,String,int,double)
display() : void [this method is used to display all data of an object]

  1. Design an UML for the class, Employee, and implement it in Java using Net Beans
  2. Write a test program to create ‘n’ objects from the class Employee and store them into
    an array. The program should give the following output:
    a. Display the data of each object from the array
    b. Calculate and display the average salary for ‘n’ employees