I need to create this coding:(JAVA PROGRAMMING)
Write a program by creating anEmployee class. This class has three instance variables:
1. Creategetterandsettermethods of all the instance variables
2. Write a constructor for the classEmployee,which takes a String representing the name
3. Write a methodgetInfo() which takes the salary, number of hours of work per day of an employee as a parameter
4. Write a methodaddSal() which adds $10 to the salary of the employee if it is less than $500.
5. Write a methodaddWork() which adds $5 to the salary of the employee if the number of hours of work per day is more than 6 hours.
6. Write a caller class and create an object of classEmployee then call the methodsgetInfo, addSal, addWorkand print the salary of the employee
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here