Question
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get StartedRecommended Textbook for
Probability And Statistical Inference
Authors: Robert V. Hogg, Elliot Tanis, Dale Zimmerman
9th Edition
321923278, 978-0321923271
Students also viewed these Computer Network questions
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
View Answer in SolutionInn App