Question

I am having difficulties making my raptor design to work. The exercise is a follow. Design...

I am having difficulties making my raptor design to work. The exercise is a follow. Design an algorithm that will read a file and produce a weekly report of the net earnings for those employees. Net earnings are gross earnings minus deductions. Each employee has two deductions from their gross earnings each week: tax payable (15% of gross earnings) and medical levy (1% of gross earnings). Your report is to print the gross earnings, tax payable, medical levy and net earnings for each employee. At the end of the report, print the total gross earnings, total tax, total medical levy and total net earnings. Please help.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Algorithm: You can't use specific employee numbers and amounts. Remember, this is variables. Go back to problems done in prior chapters...net pay = gross_pay-union_dues- etc... Work on this and then resubmit.

INPUT

PROCESSING OUTPUT

Emp_no

Gross_pay

Input employee record Read employee numbers Calculate gross pay print employees details.

Emp_no

Gross_pay

Income_Tax_payable

Union_dues

Other_deductions

Net_pay

Total_net_pay

Employee number Gross_pay Income_tax_payable Union dues Other deductions
1 $700 $150 $50 $35
2 $750 $200 $25 $15
3 $850 $250 $75 $40

GLOBAL VARIABLE Total_net_pay

MODULE MAIN()

Get Employee Details

FOR all records

Calculate_net_pay(Gross_pay,Income_tax_payable,Union_dues,Other_deductions)

Display'Net Pay=',Net_pay

END FOR LOOP

Display 'TOTAL Net Pay=',Total_net_pay

END MAIN MODULE

MODULE
Calculate_net_pay(Gross_pay,Income_tax_payable,Union_dues,Other_deductions)

Net_pay=Gross_pay-Income_tax_payable-Union_dues-Other deductions

Total_net_pay=Total_net_pay+ Net_pay

End Calculate_net_pay MODULE

Add a comment
Know the answer?
Add Answer to:
I am having difficulties making my raptor design to work. The exercise is a follow. Design...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Design an algorithm using RAPTOR that will produce an employee payroll register from an employee file....

    Design an algorithm using RAPTOR that will produce an employee payroll register from an employee file. Each input employee record contains the employee number, gross pay, income tax payable, union dues and other deductions. Your program is to read the employee file and print a detail line for each employee record showing employee number, gross pay, income tax payable, union dues, other deductions and net pay. Net pay is calculated as gross pay – income tax – union dues –...

  • Design a program(Creating a RAPTOR flowchart) that will read a file of employee records containing employee...

    Design a program(Creating a RAPTOR flowchart) that will read a file of employee records containing employee number, employee name, hourly pay rate, regular hours worked and overtime hours worked. The company pays its employees weekly, according to the following rules: regular pay = regular hours worked × hourly rate of pay overtime pay = overtime hours worked × hourly rate of pay × 1.5 total pay = regular pay + overtime pay Your program is to read the input data...

  • Please help! I am stuck on this problem Ch 11-3 Exercises and Problems Calculator eBook Show...

    Please help! I am stuck on this problem Ch 11-3 Exercises and Problems Calculator eBook Show Me How Print Item Breakin Away Company has three employees-a consultant, a computer programmer, and an administrator. The following payroll information is available for each employee: Consultant Computer Programmer Administrator Regular earnings rate $2,510 per week $30 per hour $42 per hour Overtime eanings rate Not applicable 1.5 times hourly rate 2 times hourty rate Number of withholding allowances For the current pay period,...

  • I am having a hard time with my program to assignment 4.12. Here are the instructions:...

    I am having a hard time with my program to assignment 4.12. Here are the instructions: The Payroll Department keeps a list of employee information for each pay period in a text file. The format of each line of the file is the following: <last name> <hours worked> <hourly wage> Write a program that inputs a filename from the user and prints to the terminal a report of the wages paid to the employees for the given period. The report...

  • I am really struggling with this assignment, can anyone help? It is supposed to work with...

    I am really struggling with this assignment, can anyone help? It is supposed to work with two files, one that contains this data: 5 Christine Kim # 30.00 3 1 15 Ray Allrich # 10.25 0 0 16 Adrian Bailey # 12.50 0 0 17 Juan Gonzales # 30.00 1 1 18 J. P. Morgan # 8.95 0 0 22 Cindy Burke # 15.00 1 0 and another that contains this data: 5 40.0 15 42.0 16 40.0 17 41.5...

  • 9 Check my work Problem 11-3A Payroll expenses, withholdings, and taxes LO P2, P3 Paloma Co....

    9 Check my work Problem 11-3A Payroll expenses, withholdings, and taxes LO P2, P3 Paloma Co. has four employees, FICA Social Security taxes are 6.2% of the first $118,500 paid to each employee, and FICA Medicare taxes are 1.45% of gross pay. Also, for the first $7000 paid to each employee, the company's FUTA taxes are 05% and SUTA taxes are 2.15%. The company is preparing its payroll calculations for the week ended August 25 Payroll records show the following...

  • I have answered majority of the questions (please correct me if I am wrong) but I...

    I have answered majority of the questions (please correct me if I am wrong) but I just need help on requirement 5 please! Lenny Worthington is general manager of United Salons. During 2018, Worthington worked for the company all year at a $13,200 monthly salary. He also earned a year-end bonus equal to 5% of his annual salary. Worthington's federal income tax withheld during 2018 was $1.980 per month, plus United incurred payroll tax expense on Worthington for FICA tax....

  • Styles Program Description Write a C++ program that computes and displays employees' earnings. Prompt the user...

    Styles Program Description Write a C++ program that computes and displays employees' earnings. Prompt the user for type of employee (hourly ("h"or "H") or management ("'m" or "M") If the employee is management: . get the annual salary get the pay period (weekly ("w" or "W"), bi-weekly ("b" or "B") or monthly ("m" or e compute the gross salary for the pay period (Divide annual salary by 52 for weekly, 26 for bi-weekly, and 12 for monthly) deduct from gross...

  • Hal Sullivan manages a Frosty World drive-in. His straight-time pay is $13 per hour, with time-and-a-half...

    Hal Sullivan manages a Frosty World drive-in. His straight-time pay is $13 per hour, with time-and-a-half for hours in excess of 40 per week. Sullivan's payroll deductions include withheld income tax of 20%, FICA tax, and a weekly deduction of $7 for a charitable contribution to United Way. Sullivan worked 56 hours during the week. (Click the icon to view payroll tax rate information.) Read the requirements. not requir urnal entries.) Date Debit Credit 832.00 Cash Employee Income Taxes Payable...

  • Complete the following payroll register for Thorndike Manufacturing Company. All workers receive time and one-half for...

    Complete the following payroll register for Thorndike Manufacturing Company. All workers receive time and one-half for hours worked in excess of 40 hours per week. Compute Social Security using 6.2% and Medicare using 1.45%. Medical insurance and union dues deductions are shown in the payroll register. Use the wage bracket method to determine federal income tax. Total each column and verify the total net pay amount. Payroll Register Earnings Deductions Employee Name Allow. Status Hours Worked Pay Rate Regular Overtime...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT