ComputerScienceExpert

(11)

$18/per page/

About ComputerScienceExpert

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Applied Sciences,Calculus See all
Applied Sciences,Calculus,Chemistry,Computer Science,Environmental science,Information Systems,Science Hide all
Teaching Since: Apr 2017
Last Sign in: 103 Weeks Ago, 3 Days Ago
Questions Answered: 4870
Tutorials Posted: 4863

Education

  • MBA IT, Mater in Science and Technology
    Devry
    Jul-1996 - Jul-2000

Experience

  • Professor
    Devry University
    Mar-2010 - Oct-2016

Category > Programming Posted 29 Apr 2017 My Price 8.00

This method should be called from both constructors

This is in Java..eclipse.. I need this asap please, and thank you

For version 1 your job will be to create an Employee class.
Requirements:
  • (10 pts) An Employee should have the following fields: o First Name o Last Name
    o ID number, in the format AA-XXXX
    o Social Security Number, in the format XXX-XX-XXXX o Start Year
    o Department
    o Department code
  • (10 pts) Constructors:
    o Default constructor that initializes the data members to the following values:
               Employee Name: John Doe
    
               Start Year: 2017
    

o Parameter Constructor that sets the following fields:

First Name, Last Name, Social Security Number, Start Year, Department, Department Code

  • (10 pts) Include mutator methods for the following fields:
    First Name, Last Name, Social Security Number, Start Year, Department,
               Department Code
    
  • (10 pts) Include accessor methods for the following fields:
    First Name, Last Name, ID number, Social Security Number, Start Year,
               Department, Department Code
    
  • (20 pts) Include the following private method called CreateIDNumber().
         The purpose of this method is to generate the ID number.
    
    The ID number should be generated randomly, in the format AA-XXXX with the following rules: o The first letter should be generated from the first character of the first name

o The second letter should be generated from the first character of the last name

o The 4 digits should be generated randomly. For example:

           Employee Name: John Doe

ID number: JD-8232
Note: This method should be called from both constructors.

  • (10 pts) Include a toString() method. You can decide the format of the string.
  • (10 pts) Create a UML diagram to represent your Employee class.

• (20 pts) Create a driver class called EmployeeTester. Be sure to fully test your class.

Answers

(11)
Status NEW Posted 29 Apr 2017 07:04 AM My Price 8.00

-----------

Not Rated(0)