Answered step by step
Verified Expert Solution
Question
1 Approved Answer
use C++ write this program This assignment involves creating a program to track employee information. Keep the following information on an employee 1. Employee ID
use C++ write this program
This assignment involves creating a program to track employee information. Keep the following information on an employee 1. Employee ID (string) 2. Last name (string) 3. First Name (string) 4. Birth date (string as MM/DD/YYYY) 5. Gender (M or F, single character) 6. Start date (string as MM/DD/YYYY) 7. Salary per year double Thus you must create a class that has all of this, and get/set methods for each of these fields. Your class must have three constructors: 1. No arguments. Just construct an object. 2. Takes only an employee ID 3. Takes all information When the program starts it must check to see if a file called Employee.txt exists. If it does, read the information into Employee objects which you dynamically allocate and put them into an array of pointers to objects. Data in the file is stored separated by spaces, one employee per line. Assume the company will have no more than 100 employees, but if it does, show an error. No vectors for this oneStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started