Answered step by step
Verified Expert Solution
Question
1 Approved Answer
how does this look in raptor? # Declare variables name: String hoursWorked: Real payRate: Real regularPay: Real overtimePay: Real grossPay: Real taxWithholding: Real netPay: Real
how does this look in raptor? # Declare variables
name: String
hoursWorked: Real
payRate: Real
regularPay: Real
overtimePay: Real
grossPay: Real
taxWithholding: Real
netPay: Real
parkingCost: Real
# Input employee name
input "Enter employee name: name
# Input and validate hours worked
repeat
input "Enter hours worked must be more than : hoursWorked
until hoursWorked
# Input and validate pay rate
repeat
input "Enter pay rate between $ and $: payRate
until payRate and payRate
# Calculate regular pay
regularPay hoursWorked payRate
# Calculate overtime pay if applicable
if hoursWorked
overtimeHours hoursWorked
overtimePay overtimeHours payRate
else
overtimePay
# Calculate gross pay
grossPay regularPay overtimePay
# Calculate tax withholding of gross pay
taxWithholding grossPay
# Calculate net pay
netPay grossPay taxWithholding parkingCost
# Display heading
output ACWIE corporation
# Display employee information
output "Employee Name:", name
output "Hours Worked:", hoursWorked
output "Pay Rate: $ payRate
output "Regular Pay: $ regularPay
output "Overtime Pay: $ overtimePay
output "Gross Pay: $ grossPay
output "Tax Withholding: $ taxWithholding
output "Parking Cost: $ parkingCost
output "Net Pay: $ netPay
# Check for ALERT
if netPay
output "ALERT
end
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started