Question
Specification: IN JAVA The employees of a company are paid by hours. The salaries are multiplied by a coefficient K which depends on the number
Specification: IN JAVA The employees of a company are paid by hours. The salaries are multiplied by a coefficient K which depends on the number of hours per week. There are 4 categories: 1. K = 1 for the first 39 hours 2. K = 1.2 for the next 5 hours 3. K = 1.5 for the next 5 hours 4. K = 1.8 for the next 6 hours The program will prompt the user to enter two values (in the following order): a. The number of weekly hours (a positive integer value) b. The rate of an hour (a positive float) The program will compute the final weekly salary of the employee. Example: The number of weekly hours: 50 hours The rate of an hour: 50 $ The salary: 39*1*50 + 5*1.2*50 + 5*1.5*50 + 1*1.8*50= 2715 $ The explanation of this calculation is as following: Nbr of hours 39 5 5 1 =50 Rate of an hour 50$ 50$ 50$ 50$ k 1 1.2 1.5 1.8 =39*50*1 =5*50*1.2 5*50*1.5 1*50*1.8 =2715 $ The program will display a summary with the following information: The final weekly salary
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 Started