PROBLEM: Develop an algorithm and subsequent flowchart with full user documentation and programmer documentation to process the weekly payroll of the Brooks Leather Company (BLC). For each employee of BLC your program will compute the gross pay, deductions, and net pay. This information is to be clearly printed in the output. Each week BLC enters the following information into a data file called ‘paydata’ for all the employees: Sample input data: 123456789 25.5 3 40 234567812 15.5 4 45 234512345 16.3 0 60 Social insurance number (9 digits) Hourly pay rate (xx.xx) Number of exemptions (0 to 19) Hours worked (xx.x) Using this file of information for all the employees, your program should carry out the following computations. (a) Gross Pay Regular pay for the first 40 hours and time-and-a-half beyond that up to a limit of 54 hours in any given week. (b) Deductions Let gross represent gross pay and taxable represent taxable pay. Let exempt represent the number of exemptions. (i) Federal income tax withholding (federal) is defined as: taxable = gross – $14.00 * exempt – $11.00 federal = taxable *(0.14 + 2.3 x 10-4 * taxable) (ii) Provincial income tax withholding (prov) is defined as 35% of the amount withheld for federal income tax. (iii) Pension withholding (pension): $16.50 or (7.7% of gross), whichever is smaller. (c) Net pay Gross pay less all deductions. For each employee, your program would produce an output report in a legible format with each item clearly labelled. Your program must be capable of processing an arbitrary number of data and should perform reasonable operations for all data sets regardless of how meaningless they are. (For example, what if deductions exceed net pay? What if taxable pay is negative? Be careful to check those and similar situations and decide the appropriate action.) Verification of the input data is known as an error check. Error checks on the input data are an integral part of every good program. The input data must be checked to make sure that it is valid (within the given ranges). For example: ‘Hourly pay rate’ must be a non-negative number between 0 and 99.99. You should perform error checks for ‘hourly pay rate’, ‘number of exemptions’, and ‘hours worked’. You need not check to see that the ‘social insurance number’ is a 9 digit number. (You do not know how to do this yet.) Plan your flowchart solution according to the guidelines below: 1. Use the same variable names in the flowchart as you would use when coding the program. For example, ‘rate’ for ‘hourly pay rate’, ‘grosspay’ for ‘gross pay’ and ‘taxpay’ for ‘taxable pay’. Try to use meaningful names, g and t are not very descriptive. 2. The print box(s) of your flowchart should contain only the variable names of the data to be printed. As you are not coding this problem you need not worry about the configurations of an output table. The design of the output normally need not be considered at the flowcharting stage of a program. 3. You must use a separate box for each decision. Do not combine several decisions in one decision box. Remember: Decision steps of flowcharting questions in all the course examinations must be done in this manner. 4. Use the proper box for each type of operation. Follow the guidelines in flowcharting. 5. For each employee with invalid input data, the program should print out an appropriate error message and continue directly with the next set of input data. The program should not calculate the pay of any employee with invalid data. 6. Use eof function to check end of input
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.
Read moreEach paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.
Read moreThanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.
Read moreYour email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.
Read moreBy sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.
Read more