Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

3) Write a java program to calculate the bonus of employee using class and object as per following scenario: Write java code to read

 

3) Write a java program to calculate the bonus of employee using class and object as per following scenario: Write java code to read employee name, Salary and year of services and two methods. Calculate and display the bonus of the employee as per following conditions: If years of service is in between 15 and 10 years then bonus is 100% of the salary. Else the years of service is in between 9 to 6 years, then bonus is 75% of the salary Else the years of service is between 5 to 1 years, then bonus is only 50% of the salary. otherwise, no bonus Create class that hosts the main method and create one object. The created object should be used to call all methods and display appropriate messages.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Probability And Statistical Inference

Authors: Robert V. Hogg, Elliot Tanis, Dale Zimmerman

9th Edition

321923278, 978-0321923271

More Books

Students also viewed these Computer Network questions