in c++ In this exercise, we will read in a data file of employees (file is furnished to you, “employee.dat”): Employee SSN Employee Last Name Employee First Name Hours Worked Pay Per Hour Personal Income Tax Rate   You assignment’s logic is to: Read in the records from the file, Pass the Hours Worked, Pay Per Hour, Personal Income Tax Rate to a single function to determine: Whether or not overtime pay is computed (anything over 40 hours is overtime at 1.5 times the regular pay). Compute any overtime pay at 1.5 times pay rate Compute the regular pay at regular hours (40 hours or less) Compute the gross pay (Regular Pay plus any overtime pay) Compute the personal income taxes withheld Compute Net Pay (gross pay minus personal income taxes withheld) Pass ALL these values BACK to the main calling routine from this one function. Display: the Employee SSN, Last Name, First Name, Total Hours, Regular Hours, Overtime Hours (if any), Pay Per Hour, Personal Income Tax Rate, Regular Pay, Overtime Pay (if any), Gross Pay, Withheld Income Taxes, Net Pay. this is my .dat file 123-45-6789 Kirk James 44.7 88.99 0.0175 124-89-0007 Bond Jane 45.6 65.75 0.04 405-77-8911 Puff Blossom 40 33.88 0.03 405-10-9871 Puff Buttercup 41.2 45.66 0.047 223-03-8761 Puff Bubbles 37.8 33.44 0.015 980-11-2201 Joneski Kasey 23.1 10.77 0.033 115-88-7619 Crooke I.M.A. 25.4 88.75 0.02 777-00-1232 Smith Alias 43.5 22.3 0.034 345-89-0022 DeMann Stan 56.7 29.45 0.065 210-37-1192 Jones Jeane 48.9 20.33 0.025 103-22-4321 Smith Alias 33.5 19.67 0.063

Question

in c++

In this exercise, we will read in a data file of employees (file is furnished to you, “employee.dat”):

  1. Employee SSN
  2. Employee Last Name
  3. Employee First Name
  4. Hours Worked
  5. Pay Per Hour
  6. Personal Income Tax Rate

 

You assignment’s logic is to:

  1. Read in the records from the file,
  2. Pass the Hours Worked, Pay Per Hour, Personal Income Tax Rate to a single function to determine:
  3. Whether or not overtime pay is computed (anything over 40 hours is overtime at 1.5 times the regular pay). Compute any overtime pay at 1.5 times pay rate
  4. Compute the regular pay at regular hours (40 hours or less)
  5. Compute the gross pay (Regular Pay plus any overtime pay)
  6. Compute the personal income taxes withheld
  7. Compute Net Pay (gross pay minus personal income taxes withheld)
  8. Pass ALL these values BACK to the main calling routine from this one function.
  9. Display:
    • the Employee SSN,
    • Last Name, First Name,
    • Total Hours,
    • Regular Hours,
    • Overtime Hours (if any),
    • Pay Per Hour,
    • Personal Income Tax Rate,
    • Regular Pay, Overtime Pay (if any),
    • Gross Pay,
    • Withheld Income Taxes,
    • Net Pay.

this is my .dat file

123-45-6789 Kirk James 44.7 88.99 0.0175
124-89-0007 Bond Jane 45.6 65.75 0.04
405-77-8911 Puff Blossom 40 33.88 0.03
405-10-9871 Puff Buttercup 41.2 45.66 0.047
223-03-8761 Puff Bubbles 37.8 33.44 0.015
980-11-2201 Joneski Kasey 23.1 10.77 0.033
115-88-7619 Crooke I.M.A. 25.4 88.75 0.02
777-00-1232 Smith Alias 43.5 22.3 0.034
345-89-0022 DeMann Stan 56.7 29.45 0.065
210-37-1192 Jones Jeane 48.9 20.33 0.025
103-22-4321 Smith Alias 33.5 19.67 0.063

Expert Answer

Want to see the step-by-step answer?

Check out a sample Q&A here.

Want to see this answer and more?

Experts are waiting 24/7 to provide step-by-step solutions in as fast as 30 minutes!*

*Response times vary by subject and question complexity. Median response time is 34 minutes and may be longer for new subjects.

Related Computer Science Q&A

Find answers to questions asked by students like you.

Q: Let’s say that you installed Windows Server 2016 on VM1 and you added VM1 to the Adatum.com domain. ...

A: Ways for virtual machine using both device and credential guardAfter installing Windows server 2016 ...

Q: Please study / review chapters 03 and 06 before you attempt to do this project. Design two pseudocod...

A: Pseudocode:Pseudocode for “main ()” function:Start the “main ()” functionRead the first number from ...

Q: What is the SQL query commands to create the COURSE table (attached) with appropriate attributes and...

A: Course table:COURSE(COURSE_TYPE, DEPARTMENT_ID, COURSE_TITLE, COURSE_DESCRIPTION, COURSE_TYPE_CODE )...

Q: Compiler returning errors with calculations and declarations. Screenshot of File.txt included.  ...

A: The code is working fine as I have tested it and the Output is attached at the end.Code://importing ...

Q: Write a wholly creative quiz program that consists of three original questions that you make up acco...

A: As here, no programming language is specified. So, we are providing the solution in java.The below g...

Q: 1:02 PM COmputer ScieNTE QUESTIONS ama answers/ What is... '@ Question: What is the output of the fo...

A: Explanation:The “==” sign in the “if” condition compare the two string reference types “abc” and “xy...

Q: Did I correctly perform the SQL query below (photo attached): A query that contains the GROUP BY cla...

A: Answer:“Yes”, the given query is correct.

Q: 1. Explain what the CPU should do when an interrupt occurs. Include in your answer the method the CP...

A: Interrupt handling by the Central Processing Unit (CPU)An interrupt is a process through which modul...

Q: Create a MySQL Database called “CSC306Class”. Create three (3) tables in the database called “studen...

A: CREATE DATABASE:A new SQL database is created using the CREATE DATABASE statement.Syntax:CREATE DATA...