Question: 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
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
