Answer to Question #263346 in Algorithms for Bigboss0616

Question #263346

Given is GROSS_PAY, draw a program plan, algorithm, and flowchart that will compute for DEDUCTIONS and NET_PAY for employee’s weekly Payroll. Consider the conditions:


If Civil Status = ‘SINGLE’

DEDUCTIONS = GROSS_PAY * 0.03


If Civil Status = ‘MARRIED’

DEDUCTIONS = GROSS_PAY * 0.06


If Civil Status = ‘WIDOW’

DEDUCTIONS = GROSS_PAY * 0.05


If Civil Status = HEAD OF THE FAMILY’

DEDUCTIONS = GROSS_PAY * 0.02


Using the formula:

[NET_PAY = GROSS_PAY – DEDUCTIONS] 


1
Expert's answer
2021-11-09T17:46:07-0500

Program Plan:


Available Input:

Civil Status

GROSS_PAY

Processing Requirements:

DEDUCTIONS = GROSS_PAY * TAX

NET_PAY = GROSS_PAY – DEDUCTIONS

Required Output:

NET_PAY


Algorithm:

START

Input:

'Civil Status'

GROSS_PAY

case 1: Civil Status = ‘SINGLE’

DEDUCTIONS = GROSS_PAY * 0.03

case 2: Civil Status = ‘SINGLE’

DEDUCTIONS = GROSS_PAY * 0.06

case 3: Civil Status = ‘SINGLE’

DEDUCTIONS = GROSS_PAY * 0.05

Output: NET_PAY = GROSS_PAY – DEDUCTIONS

case 4: Civil Status = ‘SINGLE’

DEDUCTIONS = GROSS_PAY * 0.02

Output:

NET_PAY = GROSS_PAY – DEDUCTIONS

STOP





Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS