T
TheRealGamerStudios
Guest
We have been asked by a nation-wide company to design a new payroll system for employees since they can no longer afford to have someone manually calculate payroll every two weeks. As part of this payroll system, we need to accurately calculate deduction rates for the company pension plan. The deductions are defined as follows: 1. For employees making up to and including $25,000/year (total gross), the deduction rate will be 10% of gross pay. 2. Employees making more than $25,000/year (<g class="gr_ gr_21 gr-alert gr_gramm gr_inline_cards gr_run_anim Grammar multiReplace" data-gr-id="21" id="21">total</g> gross) but less than $50,000/year (total gross) will have a deduction rate of 20% of gross pay. 3. For employees making $50,000/year or more (total gross), the deduction rate will be 30% of gross pay. To further complicate the situation the deduction rate is affected by the number of employees within each salary range, as follows: for every 5 employees in each salary range, the deduction rate is decreased by 1%, up to a maximum reduction of 5%. For example, if we have 5 employees that make $25,000/year or less then the pension rate will be reduced by 1%, to a total of 9%. If we have 25 employees making $25,000/year or less, the pension rate will be reduced by 5%, to a total of 5%. If we have 30 employees making $25,000/year or less, the pension rate will be reduced by 5%, to a total of 5%. In order to develop the new payroll system, you have been assigned the task of providing planning material for the software developers involved in the project. The planning material will consist of pseudocode (to allow software developers to implement the system), and flowchart(s) to describe the main decision structure of the system (how the system keeps track of the total number of employees for each salary bracket, and how it determines deductions based on salary). The program should be able to accept a list of employee salaries (we aren’t going to worry about names at this point) and based on the number of salaries within each specified salary range, show an estimated deduction rate for each salary range. The program should also provide a summary display showing the number of salaries within each salary range along with the estimated pension rate for that salary range.
Continue reading...
Continue reading...