The Company decided to give a 25% bonus for employees whose salaries are less than 3000$ due to holidays. Write a java program that asks the user to enter his/her name, and his/her work position. The program should calculate and display the total salary of the employee based on his/her salary position, the bonus amount and the final salary for an employee. Make sure that your program outputs exactly as the sample run below. Sample Run1: Enter Your Name: Ali Enter Your Position (M for Managers, S for Supervisors or P for Sales Person): M Employees Salary Employees' Name: Ali Position: Bonus Amount: Final Cost: $3500 Sample Run2: Manager Salary: $3500.0 $0.0

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter2: Elements Of High-quality Programs
Section: Chapter Questions
Problem 1GZ
icon
Related questions
Question
A Software Engineering Company has a salary system based on position level. The table below represents
the salary paid according to each position:
Employee Position
Employees Salary
Employees' Name: Ali
Position:
Bonus Amount:
Final Cost: $3500
Manager
Supervisors
Sales Person
The Company decided to give a 25% bonus for employees whose salaries are less than 3000$ due to
holidays.
Write a java program that asks the user to enter his/her name, and his/her work position. The program should
calculate and display the total salary of the employee based on his/her salary position, the bonus amount and
the final salary for an employee.
Make sure that your program outputs exactly as the sample run below.
Sample Run1:
Enter Your Name: Ali
Enter Your Position (M for Managers, S for Supervisors or P for Sales Person): M
Fixed Monthly Salary
3500$
2100$
Manager Salary: $3500.0
$0.0
Internet Service Bill
700$
Sample Run2:
Enter Your Name: Cerine
Enter Your Position (M for Managers, S for Supervisors or P for Sales Person): P
Employees' Name: Cerine
Position:
Bonus Amount:
Final Cost: $875.0
Sales Person Salary: $700.0
$175.0
Sample Run 3:
Enter Your Name: Rami
Enter Your Position (M for Managers, S for Supervisors or P for Sales Person): k
Please Enter an available position
Transcribed Image Text:A Software Engineering Company has a salary system based on position level. The table below represents the salary paid according to each position: Employee Position Employees Salary Employees' Name: Ali Position: Bonus Amount: Final Cost: $3500 Manager Supervisors Sales Person The Company decided to give a 25% bonus for employees whose salaries are less than 3000$ due to holidays. Write a java program that asks the user to enter his/her name, and his/her work position. The program should calculate and display the total salary of the employee based on his/her salary position, the bonus amount and the final salary for an employee. Make sure that your program outputs exactly as the sample run below. Sample Run1: Enter Your Name: Ali Enter Your Position (M for Managers, S for Supervisors or P for Sales Person): M Fixed Monthly Salary 3500$ 2100$ Manager Salary: $3500.0 $0.0 Internet Service Bill 700$ Sample Run2: Enter Your Name: Cerine Enter Your Position (M for Managers, S for Supervisors or P for Sales Person): P Employees' Name: Cerine Position: Bonus Amount: Final Cost: $875.0 Sales Person Salary: $700.0 $175.0 Sample Run 3: Enter Your Name: Rami Enter Your Position (M for Managers, S for Supervisors or P for Sales Person): k Please Enter an available position
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Constants and Variables
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT