Open with Google Docs A Company decided to give a bonus for the employees based on their skills and number of working years. You should write a java program for this company to facilitate the process and calculate the bonus earned by cach employee. The program should ask the HR to insert the employee's name, basic salary, skill, and number of years. Skills are divided by A and B The table below represents the bonus system used by the company Years Skill Greaton
Addition of Two Numbers
Adding two numbers in programming is essentially the same as adding two numbers in general arithmetic. A significant difference is that in programming, you need to pay attention to the data type of the variable that will hold the sum of two numbers.
C++
C++ is a general-purpose hybrid language, which supports both OOPs and procedural language designed and developed by Bjarne Stroustrup. It began in 1979 as “C with Classes” at Bell Labs and first appeared in the year 1985 as C++. It is the superset of C programming language, because it uses most of the C code syntax. Due to its hybrid functionality, it used to develop embedded systems, operating systems, web browser, GUI and video games.
![Open with Google Docs
A Company decided to give a bonus for the employees based on their skills and number of working years.
You should write a java program for this company to facilitate the process and calculate the bonus earned by
each employee.
The program should ask the HR to insert the employce's name, basic salary, skill, and number of years.
Skills are divided by A and B
The table below represents the bonus system used by the company
Years Skill
A
B
Greater than 9
Between 5 and 9
Less than5
Basic + 3e%
Basic + 25%
Basic + 20%
Basic + 25%
Basic + 20%
Basic + 15%
Sample Runl:
Enter Employee Name: Firas
Enter Skill (A or B) : A
Enter # of Years : 3
Enter Basic Salary : 1500
The bonus for Employee Firas is : 300.0
Sample Run2:
Enter Employee Name : Anthony
Enter Skill (A or B) : B
Enter # of Years : 10
Enter Basic Salary : 1000
The bonus for Employee Anthony is : 250.0
Sample Run3:
Enter Employee Name : Fatima
Enter Skill (A or B) : X
Enter # of Years : 6
Enter Basic Salary : 500
Enter a valid Skill
Page](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fe4225e00-30f8-4354-8817-ab6c87bb6724%2F755a5fe9-694c-4e89-a96c-1c0e5dd039f6%2F5m6wyb8_processed.jpeg&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)