piecework workers are paid by the piece. Workers who produce a greater
quantity of output are often paid at a higher rate.
Form: Use text boxes to obtain the person’s name and the number of
pieces completed. Include a Calculate button to display the dollar amount
earned. You will need a Summary button to display the total number of
pieces, the total pay, and the average pay per person. A Clear button
should clear the name and the number of pieces for the current employee
and a Clear All button should clear the summary totals after confirming
the operation with the user.
Include validation to check for missing data. If the user clicks on the
Calculate button without first entering a name and the number of pieces,
display a message box. Also, you need to make sure to not display a summary
before any data are entered; you cannot calculate an average when
no items have been calculated. You can check the number of employees
in the Summary event handler or disable the Summary button until the
first order has been calculated.
Pieces
Pieces completed Price paid per piece for all pieces
1–199 .50
200–399 .55
400–599 .60
600 or more .65