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

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
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 Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 5 steps with 4 images

Blurred answer
Knowledge Booster
Reference Types in Function
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education