Question: Using * * * The inputted salary: - 5 0 0 0 . 0 0 for John Lin is less than zero. Set the salary

Using ***The inputted salary: -5000.00 for John Lin is less than zero.
Set the salary to $1,000.00.***
Employee 1: Bob Jones; Yearly Salary: 34500.00
Employee 2: Susan Baker; Yearly Salary: 37809.00
Employee 3: John Lin; Yearly Salary: 12000.00
Increasing employee salaries by 10%
Employee 1: Bob Jones; Yearly Salary: 37950.00
Employee 2: Susan Baker; Yearly Salary: 41589.90
Employee 3: John Lin; Yearly Salary: 13200.00
Create a class called employee.
1. It should includes three instance variables
a. a first name (type String), a last name (type String) and a monthly Salary
(double).
2. Provide a constructor that initializes the three instance variables; provide a set and a get
method for each instance variable.
a. If the monthly salary is not positive, display the inputted salary and set the salary
to a $1,000 value.
Write test app named EmployeeTest that demonstrates class Employees capabilities.
1. Create three employee objects with the following information.
a. Bob Jones, monthly salary $2875.00
b. Susan Baker, monthly salary $3150.75
c. John Lin, monthly salary -$5000.00
2. Display each objects yearly salary.
3. Then give each Employee a 10% raise.
4. Display each Employees yearly salary again.
Using * * * The inputted salary: - 5 0 0 0 . 0 0

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 Programming Questions!