Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Problem Statement Assume you are reading lines of data that correspond to record

ID: 3553198 • Letter: P

Question

Problem Statement

Assume you are reading lines of data that correspond to records of employee's data. For example:

x135.5 14.56 999999999 Kenneth Todd Stevens

On each line, the first character is not used (so read it into a junk variable). The second character indicates which type of employee the individual is:

1.      part-time hourly,

2.      part-time salary,

3.      full-time hourly without overtime,

4.      full-time-hourly with double pay overtime

5.      full-time salary

Use a if statements (or switch) on this character, and have a case for each type in which you will call the respective calc function to return the employee's weekly pay.

Immediately after each type character (1-5) is how many hours (float) the employee worked that week, then white-space, and then either their annual salary (double) or their hourly rate (double). Each field after the hours-worked is white-space separated. Next are their employee id number (long), first name, middle name, last name.

Write the following separate functions to calculate each employee's pay for the week:

Explanation / Answer

include #include #include using namespace std; double PartTime(float hours, double hrate) { if(hours >extraChar; while(myFile) { employeeCount++; myFile >> Choice >> hoursWorked >> rate >> employeeId >> firstName >> middleName >> lastName >> extraChar; cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote