Question

In: Computer Science

A company uses a ranking system of values from 0 to 5 to determine pay raise...

A company uses a ranking system of values from 0 to 5 to determine pay raise percentage and new salary for employees. Create the code for a python application that prompts the user for the annual performance ranking for an employee and their current salary.   Your code should use the annual performance ranking to determine the pay raise percentage based on the table below, then calculate the new annual salary ( salary + raise) in dollars. Assume rankings are only 0 to 5 inclusive. The employee ranking must be greater than or equal to zero and less than 6. Your code should have statements to output the calculated raise and new salary for each case.

Use the following table to determine pay raise percentage:

Employee Ranking                    Pay raise %

0                                                 0%

1                                               1.25%

2                                               2.0%

3                                               2.5%

4                                               3.25%

5                         3.5%

Run with the following test cases:

Rank Salary

3 $76,000

5 $32,000

1 $52,000

Solutions

Expert Solution

if you like the answer please provide a thumbs up.


Related Solutions

1) For x ¼ "110010", of type BIT_VECTOR(5 DOWNTO 0), determine the values of the shift...
1) For x ¼ "110010", of type BIT_VECTOR(5 DOWNTO 0), determine the values of the shift operations listed in the column on the left below. 2) In the column on the right, write an equivalent expression using the concatenation operator (the first one was already done). a) x SLL 3 b) x SLA -2 c) x SRA 2 d) x ROL 1 e) x ROR -3 a) x(2 DOWNTO 0) & "000" b) c) d) e)
write a for loop that uses the loop control variable to take on the values 0...
write a for loop that uses the loop control variable to take on the values 0 through 10. In the body of the loop, multiply the value of the loop control variable by 2 and by 10. Execute the program by clicking the Run button at the bottom of the screen. Is the output the same?
ABC Company and XYZ Company need to raise funds to pay for capital improvements at their...
ABC Company and XYZ Company need to raise funds to pay for capital improvements at their manufacturing plants. ABC Company is a well-established firm with an excellent credit rating in the debt market; it can borrow funds either at an 8% fixed rate or LIBOR +1% floating rate. XYZ Company is a fledgling start-up firm without a strong credit history. It can borrow funds either at a 9.5% fixed rate or at LIBOR + 0.5% floating rate. Is there an...
ABC Company and XYZ Company need to raise funds to pay for capital improvements at their...
ABC Company and XYZ Company need to raise funds to pay for capital improvements at their manufacturing plants. ABC Company is a well-established firm with an excellent credit rating in the debt market. It can borrow funds either at a 10 percent fixed rate or a LIBOR + 1 percent floating rate. XYZ Company is a fledgling start-up firm without a strong credit history. It can borrow funds either at 11 percent fixed rate or at LIBOR + 3 percent...
The random variable X can take on the values -5, 0, and 5, and the random...
The random variable X can take on the values -5, 0, and 5, and the random variable Y can take on the values 20, 25, and 30. The joint probability distribution of X and Y is given in the following table: Y 20 25 30 X -5 0.15 0.02 0.06 0 0.08 0.05 0.05 5 0.32 0.10 0.17 a. Describe in words and notation the event that has probability 0.17 in the table. . b. Calculate the marginal distribution of...
Determine for 5-bits system, if there is any overflow or carry produced from the addition of...
Determine for 5-bits system, if there is any overflow or carry produced from the addition of following decimal numbers: [4*5 = 20 Marks] a. -9 and -10 b. -14 and 14 c. 12 and -13 d. 9 and 12
Solve the system below having the initial values x(0) = 1 = y(0) x’ = x...
Solve the system below having the initial values x(0) = 1 = y(0) x’ = x + 2y y’ = -5x + 3y Please use solving systems of linear des by elimination. Thank You
Determine the critical values for the confidence interval for the population variance from the given values....
Determine the critical values for the confidence interval for the population variance from the given values. Round your answers to three decimal places. n=26 and c=0.9.
Interest Rate Swaps ABC Company and XYZ Company need to raise funds to pay for capital...
Interest Rate Swaps ABC Company and XYZ Company need to raise funds to pay for capital improvements at their manufacturing plants. ABC Company is a well-established firm with an excellent credit rating in the debt market; it can borrow funds either at 11 percent fixed rate or at LIBOR + 1 percent floating rate. XYZ Company is a fledgling start-up firm without a strong credit history. It can borrow funds either at 10 percent fixed rate or at LIBOR +...
Suppose we have N = 6 values from a population. These values are 4, 8, 0,...
Suppose we have N = 6 values from a population. These values are 4, 8, 0, 10, 14 and 6. Let μ and σ denote the population mean and population standard deviation of these six values, respectively. (a) What are the values of μ and σ, respectively? μ = 4.8580; σ = 7 μ = 7; σ = 4.8580 μ = 7; σ = 4.4347 μ = 7; σ = 19.6667 μ = 7; σ = 23.6 (b) What percentage...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT