Answered step by step
Verified Expert Solution
Link Copied!

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,
1. Load Employees
2. Search Employee
3. Display all the Employees
4. Exit
Please enter the choice:
If the user chooses choice 1 from the above menu:
then your application should read input data from text file name: empinput1.txtLinks to an external site. (Click the file name to download: comma separated text file, 1 employee per line)
Each employee should be stored in an object of a class named CEmployee
CEmployee class must have 5 data members, which are: employee name, address, postal code, department name, and salary. (data are provide in sequence in the input file)
In addition2
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 70000 as the salary for employees of department name IT Dept and a value of 50000 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 1 custom exception and 1 file exception
Display the message: Loaded employee data successfully.
You have to implement 1 operator overloading for operator << to use as a print function.
If the user chooses choice 2 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 name]-[address], Salary is [salary]
If user chooses choice 3 from the above Employee menu:
then the application should display all employee list in pattern shown below:
[employee name]-[address], Salary is [salary]
Lastly, application will end only if the user chooses choice 4.
Need to make main.cpp, CEmployee.h, CEmployee.cpp, Exceptions.h, empinput1.txt
empinputAnn,Melbourne,3105,IT Dept,70000
John,Sydney,2008,Sales Dept,50000
Frank,Pearth,2038,Marketing Dept,
Peter,Melbourne,2007,,
Lee,Sydney,2000,,70000

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database Foundations Technology Fundamentals For IT Success

Authors: Bob Bryla

1st Edition

0782143725, 9780782143720

More Books

Students also viewed these Databases questions