Consider the following text file input txt that contains in each line employee information separated by following this format

Get perfect grades by consistently using www.college-experts.com. Place your order and get a quality paper today. Take advantage of our current 20% discount by using the coupon code GET20


Order a Similar Paper Order a Different Paper

Consider the following text file “input.txt” that contains in each line employee information separated by “#” following this format: line_number#first_name#last_name#position#id_number

Write a C++ project that would display the following options to the user:

Choose one of these options:

1 – Search for an employee

2 – Sort the list of employees

3 – Insert a new employee

4 – Delete an employee

Once the user enters 1, 2, 3 or 4, it should show the following messages:

* If the user enter 1:

** Search by Last Name

** Search by First Name

** Search by Position

Once the user enters a, b or c, the program should display to the screen all the information of the employee in question

* If the user enter 2:

** Sort by Last Name

** Sort by First Name

** Sort by Position

Once the user enters a, b or c, the program should display to the screen list of employees sorted by the corresponding criterion

* If the user enter 3: the user should enter the details of the employee separated by “#”. These details have to be written to the file according to the line number. Your program should allow adding a line in the beginning, in the middle or at the end of the file content (lines that already exist).

** For example if you enter 1#……. this should write this line in the beginning and shift the previous content of the file one line below and adjust all lines’ numbers to be in incremental order

** For example if you enter 3#……. this should write this line in the middle of the previous content after line 2 and before line 3 of the previous content and adjust all lines’ numbers to be in incremental order

** For example if you enter 9#……. this should write this line in the end of the file

* If the user enter 4: the program will ask you for the index of the line that you want to delete and once provided it will delete from the file and adjust the line numbers to be in incremental order

Your program should have employee class to store employee information using getters and setters. For the search, sort, insertion and delete options you can have them as methods in the class containing the main method or you can have a class for each feature, i.e. a class for search that has all the corresponding methods, another one for sort, etc.

Deliverable: zipped file containing the Visual studio project folder

use this

1#John#Doe#Ceo#1000
2#Mark#Smith#Cfo#1001
3#Jane#Smith#Secretary#2000
4#Mark#Doe#Enmployee#3000
5#Mark#Doe#Enmployee#3001
6#Mark#Doe#Enmployee#3002
7#Jill#Stein#Accountant#4000
8#Jon#Li#IT Admin#5000

Writerbay.net

Do you need help with this or a different assignment? We offer CONFIDENTIAL, ORIGINAL (Turnitin/LopesWrite/SafeAssign checks), and PRIVATE services using latest (within 5 years) peer-reviewed articles. Kindly click on ORDER NOW to receive an A++ paper from our masters- and PhD writers.

Get a 15% discount on your order using the following coupon code SAVE15


Order a Similar Paper Order a Different Paper