Cis247b- display the employee information for the second


Lab Assignment

We begin our investigation of object-oriented programming by creating an object-oriented program with a class called Employee. You will create two objects based on the Employee class, along with a class that contains the main method. The attributes, constructors, and methods for this class must satisfy the requirements in Steps 1 through 3. After you create the objects, you will prompt the user for information and then display it.

Use the following UML diagram to build the class. The first section specifies the attributes. The second section specifies the behaviors, and the first character specifies the access modifier value, where:

"-" means that the class member is private, and

"+" means that the class member is public

Create an Employee object using the default constructor.

Prompt for and then set the first name, last name, gender, dependents, and annual salary. (Remember that you have to convert gender, dependents, and annual salary from strings to the appropriate data type.)

Using your code from last week, display a divider that contains the string "Employee Information"

Format the currency using the following formatting services:Display the Employee information.

Create a second Employee object using the multi-argument constructor, setting each of the attributes with appropriate valid values.

Using your code from last week, display a divider that contains the string "Employee Information".

Display the Employee information for the second Employee object.

Solution Preview :

Prepared by a verified Expert
Programming Languages: Cis247b- display the employee information for the second
Reference No:- TGS01727608

Now Priced at $40 (50% Discount)

Recommended (96%)

Rated (4.8/5)