Question
In visual basics: Make sure you use a Select Case for the Pay(switch statements) For validation use TRY - Catch blocks Piecework workers are paid
In visual basics:
Make sure you use a Select Case for the Pay(switch statements)
For validation use TRY - Catch blocks
Piecework workers are paid by the piece. Workers who produce a greater quantity of output are often paid at a higher rate (See the pay rate below.) You are to compute the pay for each worker. Also compute the total pay for the same worker for at Least 3 different days.
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 for each day.
You will need a Summary button to display the total number of pieces, the total pay. and the average number of pieces per person. A Clear button should clear the name and the number of pieces for the current day, and a ClearAll button should clear the summary totals after confirming the operation with the user. Display the summary data in a list box. Use the formatting to align the columns with headings "Name of Worker", "Total pieces", and "Total Pay". The average should be on a separate line. This uses the concept of formatting data for output.
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 procedure or disable the Summary button until the first order has been calculated.
Here is the data
Pieces Completed | Price Paid per Piece for all Pieces |
1 -199 | 0.50 |
200 399 | 0.55 |
400 -599 | 0.60 |
600 or more | 0.65 |
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