Write a program by creating an 'Employee' class having the following methods and print the final salary. 1- 'getInfo()'

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Write a program by creating an 'Employee' class having the following methods and print the final salary. 1- 'getInfo()'

Post by answerhappygod »

Write A Program By Creating An Employee Class Having The Following Methods And Print The Final Salary 1 Getinfo 1
Write A Program By Creating An Employee Class Having The Following Methods And Print The Final Salary 1 Getinfo 1 (51.69 KiB) Viewed 69 times
write java code for the above question
Write a program by creating an 'Employee' class having the following methods and print the final salary. 1- 'getInfo()' which takes the salary, number of hours of work per day of employee as parameter 2- 'AddSal()' which adds $10 to salary of the employee if it is less than $500. 3- 'AddWork()' which adds $5 to salary of employee if the number of hours of work per day is more than 6 hours.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply