Question

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 – other deductions. At the end of the report, print the total net pay for all employees.(NEEDS RAPTOR FLOWCHART AND MASTER CONSOLE) Thanks!! :D (So far I've had THREE answers not using RAPTOR.... , so PLEASE I need using RAPTOR - Flowchart!!)

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

Your program is to continue to process salaries until a salary of zero is entered.
A Defining diagram
Input Processing Output
salary Prompt for salary income_tax
Get salary
Calculate income_tax
Display income_tax


B Hierarchy chart
?
C Solution algorithm
Note: The program will continue to process salaries, until a salary of zero is entered.



Process_employee_salary
Prompt for salary
Get salary
DOWHILE salary NOT = 0
Calculate_income_tax (salary, income_tax)
Display ‘Income tax due = ’, income_tax
Prompt for salary
Get salary
ENDDO
END
Calculate_income_tax (salary, income_tax)
IF salary < 5,000 THEN
income_tax = 0
ELSE
IF salary < 10,000 THEN
income_tax = salary * 0.06
ELSE
IF salary < 20,000 THEN
income_tax = salary * 0.15
ELSE
IF salary < 30,000 THEN
income_tax = salary * 0.2
ELSE
IF salary < 40,000 THEN
income_tax = salary * 0.25
ELSE
income_tax = salary * 0.3
ENDIF
ENDIF
ENDIF
ENDIF
ENDIF
END

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:
Design an algorithm using RAPTOR that will produce an employee payroll register from an employee file....
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
  • 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...

  • 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...

  • 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...

  • 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...

  • PAYROLL REGISTER AND JOURNAL ENTRIES WOR JOURNAL ENTRIES WORKSHEET Requirement a): Complete the payroll register (20...

    PAYROLL REGISTER AND JOURNAL ENTRIES WOR JOURNAL ENTRIES WORKSHEET Requirement a): Complete the payroll register (20 points) DEDUCTIONS State Net Pay EARNINGS Federal Income Income Total Deductions Tax Social Security Medicare Tax Tax Wage Rate Regular Wages Total Wages Overtime Wages Total Hours Worked 40 44 42 Accum Wages 99,500 78,500 6,700 Name D. Rump N. Pelowski D. Knatts Totals: 312.45 225.951 279.45 $42 $29 $36 Requirement b): Complete the employee and employer payroll journal entries (10 points) Dr Cr...

  • 2. Assume that a payroll register contains the following columnar totals for the pay period ended...

    2. Assume that a payroll register contains the following columnar totals for the pay period ended January 7, 20X1: Cumulative yearly carnings Gross earnings this period... prior to current pay periodS 0- 3,000 . Deductions: Federal income tax . . . Medical insurance. Union dues 380 210 165 6.2% 1.45% Prepare general journal entries to (a.) record the payroll and (b.) record the payment the payroll.

  • Testbank, Question 47 The following totals for the month of April were taken from the payroll...

    Testbank, Question 47 The following totals for the month of April were taken from the payroll register of Branson Corp.: Gross salaries CPP withheld Employee income taxes withheld Medical insurance deductions El withheld Union dues withheld $26,850 1,330 5,785 930 478 446 The journal entry to record payment of the net payroll would include a debit to Salaries Payable for $17,881. debit to Salaries Payable for $15,300. e debit to Salaries Payable for $21,065. credit to Cash for $26,850.

  • Moving to another question will save this response. Question Selected data from a March payroll register...

    Moving to another question will save this response. Question Selected data from a March payroll register for Sure Company are prosented below. Bome amounts are intentionally omitted. Gross earnings Regular Overtime $(3) 200 State income taxes $24,000 (1) (2) Union dues Total deductions (4) Total Deductions: $23,540 Net pay Accounts debited: $2,340 2,000 FICA taxes (5) Salaries/wages expense Federal income taxes FICA taxes are 896. State income taxes are 4% of gross earnings. Instructions Fill in the missing amounts. (a)...

  • please help Question 6 Selected data from a March payroll register for Sure Company are presented...

    please help Question 6 Selected data from a March payroll register for Sure Company are presented below. Some amounts are intentionally omitted Gross earnings Regular $24,000 State income taxes $(3) Overtime Union dues 200 Total (2) Total deductions Doductions: Net pay $23,540 FICA taxes $2,340 Accounts debited: Federal income taxes 2,000 Salarios/wages expense FICA taxes are 8% State income taxes are 4% of gross earnings. Instructions (a) Fill in the missing amounts. (b) Journalize the February payroll and the payment...

  • Question 6 Selected data from a March payroll register for Sure Company are presented below. Some...

    Question 6 Selected data from a March payroll register for Sure Company are presented below. Some amounts are intentionally omitted Gross earnings: Regular $24,000 State income taxes $(3) Overtime 200 Union dues (1) Total Total deductions Doductions: Net pay $23,540 FICA taxes $2,340 Accounts debited: Federal income taxes 2,000 Salaries/wages expense (2) FICA taxes are 8%. State income taxes are 4% of gross earnings. Instructions (a) Fill in the missing amounts. (b) Journalize the February payroll and the payment of...

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