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.
Please include all .cpp and .h files in a .zip file
Write a
- 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.
![](/static/compass_v2/shared-icons/check-mark.png)
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 9 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)