Write IPO chart with following requirements Input: Pay record First Name Char La
ID: 3769263 • Letter: W
Question
Write IPO chart with following requirements
Input: Pay record
First Name Char
Last Name Char
Hourly Rate Num
Hours Worked Num
Output: Report
Full Name
Gross Pay
Overtime Pay (based on 1.5 times pay rate on hours worked over 40)
Taxes (Federal tax is 15% of gross pay, State tax is 4.6% of gross pay)
Net pay
Processing: ask for and receive pay record
Calculate gross pay
Calculate net pay
End the program when a hourly rate of 999.99 is entered
Explanation / Answer
Input-Processing-Output Chart for calculation of a gross pay and net pay of record until user enters 999.99 for pay rate
Input
Processing Steps
Output Data
First name of the person
Last name of the person
Pay rate per Hour
Number of hours worked
Get first name of the person
Get last name of the person
Get pay rate per hour
Get number of hours worked
Check pay rate is not 9999.99
Calculate gross pay
If hours greater than 40,
grossPay=40*hours*payRate +(40-Hours )* pay rate per hour *1.5
otherwise
calculate
grossPay=40*hours*payRate
Calculate federal tax ,15 %
federal tax=grossPay*0.15;
Subtract federal tax from gross pay
Gross pay=grossPay- federal tax
Calculate state tax ,4.6 %
state tax=gross pay*0.046
Subtract state tax from gross pay
Gross pay=grossPay- federal tax
Set net pay=grossPay
Get first name of the person
Get last name of the person
Get pay rate per hour
Get number of hours worked
End
First name and last name
Gross pay
Net pay
Input
Processing Steps
Output Data
First name of the person
Last name of the person
Pay rate per Hour
Number of hours worked
Get first name of the person
Get last name of the person
Get pay rate per hour
Get number of hours worked
Check pay rate is not 9999.99
Calculate gross pay
If hours greater than 40,
grossPay=40*hours*payRate +(40-Hours )* pay rate per hour *1.5
otherwise
calculate
grossPay=40*hours*payRate
Calculate federal tax ,15 %
federal tax=grossPay*0.15;
Subtract federal tax from gross pay
Gross pay=grossPay- federal tax
Calculate state tax ,4.6 %
state tax=gross pay*0.046
Subtract state tax from gross pay
Gross pay=grossPay- federal tax
Set net pay=grossPay
Get first name of the person
Get last name of the person
Get pay rate per hour
Get number of hours worked
End
First name and last name
Gross pay
Net pay
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.