Introduction

  • Write a program to enter employee data including Social Security Num- ber and salary, into an array.
  • The maximum number of employees is 100 but, your program should also work for any number of employees less than 100.
  • Your program should use two exception classes, one called SSNLength- Exceptiom for when the socoial security number entered - without dashes and spaces - is not exactly nine characters and the other called SSNCharacterException for when any character in the social security number is not a digit.
  • When an exception is thrown, the user should be reminded of what she or he entered, told why it is in appropriate, and asked to reenter the data.
  • After all the data has been entered, your program should display the records for all employees, with an annotation stating whether the em- ployees salary is above or below the average.
  • You will also need to definethe classes Employee, SSNLengthException, and SSNCharacterException. Derive the class Employee from the class Person in listing 8.1 of chapter 8.
  • Among other things, the Employee class should have constructors, ac- cessor methods, and mutator methods.
  • Every Employee object should record the employees name as defined in Person class, salary, and Social Security Number, as well as any other data you need or think is appropriate.
Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.