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: for John Lin is less than zero.
Set the salary to $
Employee : Bob Jones; Yearly Salary:
Employee : Susan Baker; Yearly Salary:
Employee : John Lin; Yearly Salary:
Increasing employee salaries by
Employee : Bob Jones; Yearly Salary:
Employee : Susan Baker; Yearly Salary:
Employee : John Lin; Yearly Salary:
Create a class called employee.
It should includes three instance variables
a a first name type String a last name type String and a monthly Salary
double
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 $ value.
Write test app named EmployeeTest that demonstrates class Employees capabilities.
Create three employee objects with the following information.
a Bob Jones, monthly salary $
b Susan Baker, monthly salary $
c John Lin, monthly salary $
Display each objects yearly salary.
Then give each Employee a raise.
Display each Employees yearly salary again.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
