Question: please write me a c language code for this project :In this project, you will build a system to maintain the information of districts and

please write me a c language code for this project :In this project, you will build a system to maintain the information of districts and cities. Your program should read a set of districts and their relevant information from a file named district.txt The format of the input data is as follows: district:town:population:elevation:HasManucipility Example AlQuds:Hezma:5000:550:yes Nablus:Asira:8000:350:yes AlQuds:Qatanna:3000:300:No Jenin:Yabad:12000:200:yes You are required to implement a program to help maintaining the information of districts and their towns using an AVL Tree: Read districts.txt file and create the tree. Insert a new town from the user with all its associated information. Find a town and give the user the option to update its information (if found). Update the population, elevation, and if it has a municipality or not. List the towns in the tree in alphabetical order with their associated information. List all towns that have population greater than an input number. List all towns that have municipalities or not. Delete a town from the tree. Save all information to a file called towns.txt. Then create a Hash Table using the data from towns.txt. Use the name of towns as the keys and implement the following functions on the hash table: Print hashed table (i.e., print the entire table to the screen including empty spots). Print the size of hash table and the load factor. Insert a new record into the hash table. Search for a specific town and print the number of collisions to reach the town (if there are any collisions). Delete a specific record. Save the data back to the file towns.txt Please note that you should use any open addressing hashing technique and you should use only the first 5 characters of the name of town as the key.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!