Write a program using C++ that tracks employee information. The program should use classes for employee records. Each employee should have a record containing the following information: First Name Last Name Phone Number Address City State Zip Position Job title Payment type The program should be able to allow for the following: the input of new employees, display of existing employees, editing existing employees, deleting employees. To display payment type/salary This must calculate pay for either an hourly paid worker or a salaried worker. Hourly paid workers are paid their hourly pay rate times the number of hours worked. Salaried workers are paid their regular salary plus any bonus they may have earned.  The program should declare two structures for the following data: Hourly Paid: HoursWorked HourlyRate Salaried: Salary Bonus The program should ask the user whether he or she is calculating the pay for an hourly paid worker or a salaried worker. Regardless of which the user selects, the appropriate members of the union will be used to store the data that will be used to calculate the pay. Input Validation: Do not accept negative numbers. Do not accept values greater than 80 for HoursWorked. Write a menu that allows the user to Save the data to a file. The program should prompt the user to perform the following tasks: Load records from the file. Save records to the file.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter13: File Input And Output
Section: Chapter Questions
Problem 9PE
icon
Related questions
Question

Please include all .cpp and .h files in a .zip file 

Write a program using C++ that tracks employee information. The program should use classes for employee records. Each employee should have a record containing the following information:

  • First Name
  • Last Name
  • Phone Number
  • Address
  • City
  • State Zip
  • Position
  • Job title
  • Payment type

The program should be able to allow for the following:

  • the input of new employees,
  • display of existing employees,
  • editing existing employees,
  • deleting employees.
  • To display payment type/salary
    • This must calculate pay for either an hourly paid worker or a salaried worker.
    • Hourly paid workers are paid their hourly pay rate times the number of hours worked.
    • Salaried workers are paid their regular salary plus any bonus they may have earned.

 The program should declare two structures for the following data:

  • Hourly Paid:
    • HoursWorked
    • HourlyRate
  • Salaried:
    • Salary
    • Bonus

The program should ask the user whether he or she is calculating the pay for an hourly paid worker or a salaried worker. Regardless of which the user selects, the appropriate members of the union will be used to store the data that will be used to calculate the pay.

Input Validation: Do not accept negative numbers. Do not accept values greater than 80 for HoursWorked.

Write a menu that allows the user to Save the data to a file. The program should prompt the user to perform the following tasks:

  • Load records from the file.
  • Save records to the file.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 9 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
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr