Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I want to make a telephone directory in C language. It should have the following features: Records have to be saved in a file(tel.txt) and

I want to make a telephone directory in C language. It should have the following features:

Records have to be saved in a file(tel.txt) and all the features should have access to the file.

The University needs a Telephone Directory System that allows its Telephone Operator (TO) to carry out the following:

  1. Search employee telephone number. The TO needs to search staff telephone number by employee name or id as a search key. The system should read the tel.txt file and return the telephone number searched.

  1. Assign telephone numbers to new employees. The system should provide a feature for the TO to add telephone number for new employees into the tel.txt file. The system should allow the TO to store employee id, employee name, telephone number and department name for each of the new employee into the tel.txt file. There should not be any duplicate entry and the tel.txt file has to be created (by the system) if it does not exist.

  1. Update telephone number of the existing employees. The system should allow the TO to key-in employee id or name and update their telephone numbers.

Produce a list of all employees and their telephone numbers department-wise. You are expected to use structures to store data read from the tel.txt file and sort them department-wise using array and/or linked-list.

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

Database Security

Authors: Alfred Basta, Melissa Zgola

1st Edition

1435453905, 978-1435453906

More Books

Students also viewed these Databases questions

Question

LO1 Explain how the workforce is changing in unpredicted ways.

Answered: 1 week ago