Prachi K.

asked • 08/29/20

How to write this in c++ structures language?

Consider that you are given with a database of employee records (at least 5).

Each employee record having following information –

Emp_id(integer) Emp_name(string) Emp_city(string)

Assume that Emp_id is unique. Write a function for taking database and put

it in your header file. Use this function by including your own header file for

following questions.

{Use the structure for creating database}


a. Write a function to find out the employee record from this database on

the basis of Emp_id.

b. Write a function to sort the employee records on the basis of Emp_id.

c. Write a function to sort (alphabetically) the array of characters.

d. Write a function to count the number of employees in database.

e. Write a function to add 5 more records in database.

1 Expert Answer

By:

Patrick B. answered • 08/30/20

Tutor
4.7 (31)

Math and computer tutor/teacher

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.