Question: Objective: This lab was designed to reinforce programming concepts from Chapter 3, you will practice: . Creating a class declaration. . Declaring instance variables. .

 Objective: This lab was designed to reinforce programming concepts from Chapter

Objective: This lab was designed to reinforce programming concepts from Chapter 3, you will practice: . Creating a class declaration. . Declaring instance variables. . Declaring a constructor. Declaring set and get methods. .Writing a test application to demonstrate the capabilities of another class. Description of the Problem Using only programming techniques create a classcalled Employee that includes three pieces of information as instance variables-a first name (type string), a lastname (type string) and a monthly salary (type double). Your class should have a constructor that initializes the three instance variables. Provide a set and a get method for each instance variable. If the monthly salary is not positive, set it to o.o. Write a test application named EmployeeTest that demonstrates clasS Employee's capabilities. Create four Employee objects and display the yearly salary for each Employee. Then give each Employee a 10% raise and display each Employee's yearly salary again. (Use your name for employee 1) Sample Output Employee 1: Robert Jones; Yearly Salary: 34500.00 Employee 2: Susan Smith; Yearly Salary: 37809.00 Employee 3: Thomas Clark; Yearly Salary: 44500.00 Employee 4: Mary Colman; Yearly Salary: 57800.00 Increasing employee salaries by 10% Employee 1: Robert Jones; Yearly Salary: 37950.00 Employee 2: Susan Smith; Yearly Salary: 41589.90 Employee 3: Thomas Clark; Yearly Salary: 48950.00 Employee 4: Mary Colman; Yearly Salary: 63550.00

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!