Writer did an excellent job on completing the discussion board assignment questions in a timely manner and the revising. I will be hiring this writer for future assignments.
Part A:
Using the Sort Facitilites
In this lab, you are to read your employee file from the Wk6 lab, sort by first name, and write out to a new file called EmployeesSortedFirst.txt
You may use any of the sorting methods we have studied this term, or you can use the sort facilities of the Standard Template Library.
Your output would look like this:
Foley Bradley 123-45-6784 68000.07
Storer Bruce 123-45-6772 68000.19
Neuschafer Darryl 123-45-6776 68000.15
Clement Edwin 123-45-6789 68000.01
Delemar James 123-45-6787 68000.04
Currea James 123-45-6788 68000.02
Eastwood John 123-45-6786 68000.05
Hancock Jose 123-45-6782 68000.09
Marro Joseph 123-45-6778 68000.13
Shaw Kim 123-45-6774 68000.17
Watkins Lonnell 123-45-6770 68000.21
Leung Michael 123-45-6779 68000.12
Hewitt Michael 123-45-6781 68000.10
Tallent Nehemiah 123-45-6771 68000.20
Williams Reed 123-45-6769 68000.22
Englert Rhiannon 123-45-6785 68000.06
Smith Robert 123-45-6773 68000.18
Goode Teresa 123-45-6783 68000.08
Day Terry 123-45-6788 68000.03
Nelson Tracy 123-45-6777 68000.14
Hill Vanessa 123-45-6780 68000.11
SaleemZobair 123-45-6775 68000.16
Part B:
Enhancing Our Payroll System
Some of our labs have been based on a flat employee file, which was introduce in the week 6 EC.
The file in week 6 looked like this.
Clement Edwin 123-45-6789 68000.01
Currea James 123-45-6788 68000.02
Day Terry 123-45-6788 68000.03
Delemar James 123-45-6787 68000.04
Eastwood John 123-45-6786 68000.05
Englert Rhiannon 123-45-6785 68000.06
Foley Bradley 123-45-6784 68000.07
Goode Teresa 123-45-6783 68000.08
Hancock Jose 123-45-6782 68000.09
Hewitt Michael 123-45-6781 68000.10
Hill Vanessa 123-45-6780 68000.11
Leung Michael 123-45-6779 68000.12
Marro Joseph 123-45-6778 68000.13
Nelson Tracy 123-45-6777 68000.14
Neuschafer Darryl 123-45-6776 68000.15
SaleemZobair 123-45-6775 68000.16
Shaw Kim 123-45-6774 68000.17
Smith Robert 123-45-6773 68000.18
Storer Bruce 123-45-6772 68000.19
Tallent Nehemiah 123-45-6771 68000.20
Watkins Lonnell 123-45-6770 68000.21
Williams Reed 123-45-6769 68000.22
Notice, in this design, all workers are on salary. But many companies today hire hourly workers on a part time basis. Suppose the company needs to enhance its payroll system by having two types of records, hourly records, which begin with H, and salaried records which begin with S. If Edwin Clement becomes a salaried worker, his record would look like this:
S Clement Edwin 123-45-6789 68000.01
If James Currea becomes an hourly worker, his payroll record would look like this:
H Currea James 123-45-6788 28.50 47
Here, the 28.50 is James’ hourly wage rate, and 47 is the number of hours he worked in the two week period. (We are going to do a bi-weekly payroll)
The file would then look like this:
S Clement Edwin 123-45-6789 26800.01
H Currea James 123-45-6788 28.50 45
S Day Terry 123-45-6788 48000.03
H Delemar James 123-45-6787 38.50 20
S Eastwood John 123-45-6786 58000.05
H Englert Rhiannon 123-45-6785 22.50 27
S Foley Bradley 123-45-6784 38000.07
H Goode Teresa 123-45-6783 28.00 45
S Hancock Jose 123-45-6782 28000.09
H Hewitt Michael 123-45-6781 25.00 20
S Hill Vanessa 123-45-6780 38000.11
S Leung Michael 123-45-6779 18000.13
H Marro Joseph 123-45-6778 25.00 37
H Nelson Tracy 123-45-6777 28.50 47
S Neuschafer Darryl 123-45-6776 28000.15
H SaleemZobair 123-45-6775 25.00 25
S Shaw Kim 123-45-6774 38000.17
H Smith Robert 123-45-6773 38.50 47
H Storer Bruce 123-45-6772 15.00 30
S Tallent Nehemiah 123-45-6771 28000.19
S Watkins Lonnell 123-45-6770 18000.21
H Williams Reed 123-45-6769 12.50 35
As in the Week 6 lab, your program should read the .txt file above, calculate the biweekly pay by dividing the annual salary by 26 for salaried workers and by multiplying the hourly rate times the number of hours for hourly workers.
Your output should be a .txt file with employee names, and biweekly pay.
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