The work has not been graded but I like the output that was submitted to me. Is it possible for the same prof to do the next assignment I will be submitting? If possible, I will greatly appreciate it.
In the Payroll class a a public instance method called readEmployeeData() that takes no arguments and returns no value. The method will need to read from the file employees.txt, which can be found in the project folder for this question, and which contains the name, grade and hours worked for each of the programmers in comma-separated format, as explained at the beginning of this question.
The code for the method should do the following:
• Use a suitable OUFileChooser method to allow the user of the program to locate the file to be read.
• Construct a buffered file reader object to read the filename the user identified.
• After each line of the file is read, use a Scanner object to extract the programmer’s data from it.
• For each line in the file a new Programmer object should be created and its instance variables set as follows:
– name should be set using the first token from the data for the current employee, when constructing the programmer object.
– grade should be set based on the next value from the line.
– hours should be set to the total hours worked for the current employee.
– To set the pay, compute the total pay the programmer is due using the method computePay() you wrote in part (ii). Use this value to set the programmer’s pay.
Show more
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.
Read moreEach paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.
Read moreThanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.
Read moreYour email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.
Read moreBy sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.
Read more