Cody T.

asked • 05/03/20

Needing help on Java

Create a Java GUI solution to the following scenario:

Develop a set of classes for a business to use with various Employee functions. Create a Person class object that contains data members for first_name, last_name, address, phone_no., and email The Person class should include methods for setting data for each data field and to display all of a Person’s information on a single line.

Create an Employee subclass from Person with a data member for Annual Salary. Create a method in the Employee class which will calculate a weekly salary. Create a display method which overrides the Person display which displays the Employee’s name, address, and Weekly Salary on a single line.

Create an application file that allows the end user to supply UP TO FIVE Employees’ information; but could QUIT/EXIT any time before entering FOUR. The application should test for validity of Annual Salary and loop until the end user enters a valid value. (annualSalary>0)

The application should write the array of student information to a sequential data file for permanent access.



2 Answers By Expert Tutors

By:

Patrick B. answered • 05/04/20

Tutor
4.7 (31)

Math and computer tutor/teacher

Patrick B. answered • 05/04/20

Tutor
4.7 (31)

Math and computer tutor/teacher

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.