Question
Write in C# Workers of Piecework.com are paid by the piece. Workers who produce a greater quantity of output are often paid at a higher
Write in C#
Workers of Piecework.com are paid by the piece. Workers who produce a greater quantity of output are often paid at a higher rate as shown in the table below.
Piece completed | Price paid per piece for all pieces |
1-199 | $.50 |
200-399 | $.55 |
400-599 | $.60 |
600 or more | $.65 |
Create a form called PayForm, which uses text boxes to obtain the worker's name and the number of pieces completed. Include a Calculate button to display the dollar amount earned on the form. Include another button, Summary, to display the total number of pieces and total pay of all workers entered, plus the average pay per person on another form called SummaryForm.
A third button, Clear, should clear the name and the number of pieces for the current worker, and a 4th button, Clear All, should clear the summary totals and average after confirming the operation with the user via a message box, i.e., 'Yes' to clear all and 'No' to cancel.
Take ClothingSales project as an example to use nesting try-catch to include validation for missing and bad input data.Also, make sure to not display a summary before any data are entered.
When buttons are implemented, add a menu bar with the following menus and items:
File menu: Calculate Pay, Summary, Exit
Edit menu: Clear, Clear All
Add a context menu to PayForm that contains all five items of the above menus.
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