Question: Create a project which allows the user to input a worker s name and the number of pieces the worker has completed. The project will
Create a project which allows the user to input a workers name and the number of pieces the worker has
completed. The project will calculate the pay for the specified number of pieces entered, accumulate the total
pay for all pieces, average pay for all pieces, and total number of workers.
Flowchart
Create two flowcharts that show the logic you will use for the following events:
a Calculate button click event.
b Clear All button click event.
Include the flowcharts as PDFs in the zip file submission.
Interface and Code
Include an appropriate and meaningful project name in the title bar of the form.
Add a Status Bar to the form that contains:
a the current date
b your name as the programmer.
Create textboxes to use as inputs for:
a the workers name
b the number of pieces.
Include associated identifying labels for each input control.
Create an output label for displaying the pay for the worker.
Add a button to Calculate the pay for the current worker.
Make the Calculate button work when the user presses ENTER.
Add comments in the code to identify:
a the projects name
b the projects purpose
c your name as the programmer.
Set the Explicit and Strict options to on
Use the following table to determine the pay rate based on the number of pieces completed.
Pieces
Completed
Price Paid Per Piece for All Pieces
Completed
$
$
$
or more $
Output money paid for the worker formatted as currency.
Use a Decision structure If statements to validate:
a that both input textboxes have data
b that the number of pieces as an integer great
Use Select Case to determine the price paid per piece.
Write code that will calculate:
a number of workers
b total pieces for all workers
c total pay for all workers
d average pay for all workers.
Add a Summary button that will display the summary information in a single message box.
a Concatenate the summary information in the message box on four lines as follows:
i Piecework Summary Information
ii Total number of pieces:
iii. Total pay:
iv Average pay:
b Be sure to format all money as currency.
c Before the Summary button is clickable the user must have entered data and calculated pay.
Add a Clear button to:
a clear the forms inputs
b clear the output controls
c reset the Focus to the Workers Name textbox.
Make the Clear button work when the user presses ESC.
Add a Clear All button to:
a clear the summary variables
b call the Clear button event.
Include a Confirmation Message Box for Clear All see Slides Ch Additional Topics
Add an Exit button.
Add Keyboard Access Keys for all buttons.
Make sure the Tab Order for the forms controls is consistent.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
