Question
Payroll Retroactive Salary Description Workers at your company have negotiated a salary increase, and it will be retroactive (i.e., the increase applies to past months).
Payroll Retroactive Salary Description Workers at your company have negotiated a salary increase, and it will be retroactive (i.e., the increase applies to past months). You are to write a program that:
1. Asks for the percentage of salary increase entered as a number with decimal places (e.g., 7.6% would be entered as 7.6)
2. Asks for the number of months the increase is retroactive (as a whole number)
3. Asks for the employee's current annual salary (as a number with decimal places)
4. Prints the percentage of salary increase
5. Prints the number of months the increase is retroactive
6. Prints the current monthly salary
7. Prints the current annual salary
8. Prints the amount of increase in monthly salary
9. Prints the amount of retroactive pay due the employee
10. Prints the new monthly salary
11. Prints the new annual salary Design
Discussion
Percent means "out of 100". 7.6% means 7.6 parts out of 100 or 7.6/100. In order to obtain the percentage of salary increase, you will need to divide the user's answer by 100 in any calculations. Do not change the original values entered by the user, though. You will need them, again, in the results.
All numbers with decimal places should be printed with 2 decimal places.
The amount of the retroactive pay will be the current salary times the percentage of increase times the number of months it is retroactive.
The new annual salary will be the current annual salary plus the percentage increase in salary.
See the example output as a guide.
Example Output (Title/Instructions)
What is the percentage increase in salary? 7.6
How many months is the increase retroactive? 3
What is the current annual salary? 18750
Percentage increase in salary: 7.60%
Months increase is retroactive: 3
Current monthly salary: $1562.50
Current annual salary: $18750.00
Monthly increase: $118.75
Amount of back pay: $356.25
New monthly salary: $1681.25
New annual salary: $20175.00
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