Below is an example of what the completed project should look like and the names of the form
The program should be created so it does not matter how many employees are in the text file. Read the data in from the file, display this data in the 3 textboxes.
As the program is running ask the user if the employee whose data is in the textboxes has shift differential; a 1 means there is shift differential or a 0 means there is no shift differential (the user decides whether or not an employee should get shift differential). Calculate gross pay so that any hours worked over 40 are 1.5 times the pay rate. If there was shift differential then 5 cents for every hour worked is added to the gross pay.
Display the employee's name; the word Yes, if they worked over 40 hours; the word Yes, if they have shift differential, and the gross pay for each employee in the file.
The output should have column headings and use format zones. The outputted values should be formatted with commas, if needed, and 2 places to the right of the decimal point.
Names of the textboxes are: txtName, txtRate, txtHours
Name of the listbox is: lstBox
Name of the button is: btnCalc
Please help me ask and add the shift differential and overtime and then add it to a list box.
I believe it would work in some for of a for loop.
My Code so Far: