Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

c++ A company keeps the database of its employees in a text file. The format of the file is FirstName LastName Salary ID Define a

c++image text in transcribed

A company keeps the database of its employees in a text file. The format of the file is FirstName LastName Salary ID Define a structure called Employee with appropriate member variables to store the four parameters. In your main function, declare an STL list to store the data in the file. Read the file, one line of data at a time and store it in the list. Design functions for the following purposes Removing any entry by ID specified by user This function needs to accept the ID of an employee, search the list for the ID & then erase that entry. List the data of the employees with the last name starting with a character provided by the user This function needs to accept a character, search if the last name of an employee starts from the specified character and display that entry if it does so. From your main function, call your designed functions with appropriate arguments to demonstrate their user

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_2

Step: 3

blur-text-image_3

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

More Books

Students also viewed these Databases questions

Question

What is an industry?

Answered: 1 week ago