View the step-by-step solution to:

Question

Instructions:

Below is an example of what the completed project should look like and the names of the form

objects.


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. 


Form information:

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:


Recently Asked Questions

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question
Let our 24/7 Computer Science tutors help you get unstuck! Ask your first question.
A+ icon
Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes
A+ icon
Ask Expert Tutors