A program is required to calculate the weekly pay for an employee. The pay clerk inputs an

employee ID, hours worked and an hourly rate. The program will output the employee ID, and
Gross Pay. Gross Pay is the sum of regular pay plus any overtime pay earned. Overtime pay is
paid at 1.5 times the pay rate for any hours worked over 40

1 answer

I'm sure you can do the I/O. The calculation is

if hours <= 0
  print "error - no hours entered"
else if hours <= 40
   pay = rate * hours
else
  pay = rate*40 + rate*1.5*(hours-40)
endif
Similar Questions
    1. answers icon 1 answer
  1. ProblemThe data entry clerk is requirTom’s Paper Company Ltd wants to produce a payroll register using a program.ed to
    1. answers icon 1 answer
  2. Temp Employer wants a program that will allow the company’sclerk to enter an employee’s name and the number of hours the
    1. answers icon 0 answers
    1. answers icon 1 answer
more similar questions