Selection Ex 2 - Salesperson Wages

Created By: M Ritter | Difficulty Level: 2

Description

In JCs Computing Company, there are several junior salespeople who are paid less wages than the seniors. Employees under the age of 18 are paid $10.75 per hour while others are paid $15.25 per hour. A solution is needed which will calculate the wages due to an employee when their number of hours worked is entered.

Puzzle

Drag from here

  • CALCULATE wage = hoursWorked * 15.25
  • IF age < 18 THEN
  • INPUT hoursWorked
  • INPUT age
  • OUTPUT wage
  • ELSE
  • BEGIN
  • CALCULATE wage = hoursWorked * 10.75
  • ENDIF
  • END

Construct your solution here