in c++
with result please
Write a program that reads information about employees
of a company from a file. The information in the file is
ordered based on the salary. An employee with the highest
salary, for example, should appear at the top.
Your
program should first read the contents of the input file,
create a linked list to store the contents, and then display
the original list. Then, it will delete the employee with ID
444444444 from the list and will display the list again.
The last step your program perform is to insert three new
employees into the list and display the final results.
Write a program that reads information about employees of a company from a file. The information in the file is ordered based on the salary. An employee with the highest salary, for example, should appear at the top. Your program should first read the contents of the input file, create a linked list to store the contents, and then display the original list. Then, it will delete the employee with ID 444444444 from the list and will display the list again. The last step your program perform is to insert three new employees into the list and display the final results. Here is the information on the three new employees. Last Name First Name ID Phone Salary ******* *** ======= ******* Wood Carpenter Iron Martin 333556666 444444443 Ironman 222-222-2222 40000 828-888-8888 73000 888-666-8888 86000 Goal-keeper Here is the input file. Doe John 555 333-333-3333 65000 333-333-3333 75000 Doe Jan 444444444 John Hardworker Programmer 888888888 888-888-8888 55000 555446666 666-666-6666 76000 Output: Original List Last Name ID Phone Salary ==== ======== ======= Doe 555555555 333-333-3333 85000 Doe 4444444 333-333-3333 76000 Hardworker 888888888 888-888-8888 75000 666-666-6666 45000 Programmer Travis 555446666 List after removal of employee 444444444: Last Name First Name ID Phone Salary ******** ****** Doe John 555555555 333-333-3333 85000 Hardworker John 888-888-8888 75000 888888888 444444443 828-888-8888 73000 Ironman Iron Programmer 555446666 666-666-6666 45000 Final Output: Last Name ID Phone Salary ====== Goal-keeper 777777777 888-666-8888 86000 Doe 5555555 333-333-3333 85000 Hardworker 888888888 888-888-8888 75000 Ironman 444444443 828-888-8888 73000 555446666 666-666-6666 45000 Programmer Wood 333556666 222-222-2222 40000 Travis First Name --------- John Jan John Travis First Name Martin John John Iron Travis Carpenter =====
in c++ with result please Write a program that reads information about employees of a company from a file. The informati
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am