Answered step by step
Verified Expert Solution
Question
1 Approved Answer
You are asked to join the AIT development project team, and you have been assigned to develop an Employee Information System. Your manager has assigned
You are asked to join the AIT development project team, and you have been assigned to develop an Employee Information System. Your manager has assigned you one module for this system, so you have to develop a C program that will read basic information about Employees from the given text input file. It must exhibit the following behavior:
The program is to be called EmployeeAdmin.
The application will display menu as below,
Load Employees
Search Employee
Display all the Employees
Exit
Please enter the choice:
If the user chooses choice from the above menu:
then your application should read input data from text file name: empinputtxtLinks to an external site. Click the file name to download: comma separated text file, employee per line
Each employee should be stored in an object of a class named CEmployee
CEmployee class must have data members, which are: employee name, address, postal code, department name, and salary. data are provide in sequence in the input file
In addition
If the department name is not provided in the input file, then you have to store the default value IT Dept as the department name. Note: You have to perform this only if the department name is not provided for an Employee.
If salary is not provided in the input file for an employee, then you have to store a default value of as the salary for employees of department name IT Dept and a value of for the employees of any other departments. Note: You have to perform this only if the salary is not provided for an employee.
Use Dynamic memory allocation to store employee objects.
You should implement at least custom exception and file exception
Display the message: Loaded employee data successfully.
You have to implement operator overloading for operator to use as a print function.
If the user chooses choice from the above Employee menu:
then the application should ask for employee name and display employee information in the pattern displayed below. If the employee is not in the list, the application should display Employee not found
employee nameaddress Salary is salary
If user chooses choice from the above Employee menu:
then the application should display all employee list in pattern shown below:
employee nameaddress Salary is salary
Lastly, application will end only if the user chooses choice
Need to make main.cpp CEmployee.h CEmployee.cpp Exceptions.h empinputtxt
empinputAnn,Melbourne,IT Dept,
John,Sydney,Sales Dept,
Frank,Pearth,Marketing Dept,
Peter,Melbourne,
Lee,Sydney,
Step 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