Program that models an employee solution


Original Work


5/5 - (1 vote)

Write a program that models an employee. An employee has an employee number, a name, an address, and a hire date. A name consists of a first name and a last name. An address consists of a street, a city, a state (2 characters), and a 5-digit zip code. A date consists of an integer month, day and year. Use an Employee class, a Name class, an Address class, and a Date class in your solution. You may use the Date class from the lectures or define your own. Provide appropriate class constructors, getter methods, setter methods, and any other methods you think are necessary.Your program should prompt the user to enter data for several employees, store the data in an array of type Employee, and then display the data.Be sure to comment your code and use good programming style.