File: /home/saiesh/ADS/Assignment No 6/ads6.cpp #include<iostream> #include<stdlib.h> #include<string.h> #define MAX 10 using namespace std; int count=0; struct ht { int id; char name[MAX]; } rec[MAX],temp,tmp; class hashtable { public: hashtable(); int hashing(int); int insert(struct ht); void display(); void find(); }; hashtable::hashtable() { int i; for(i=0;i<MAX;i++) { rec[i].id=-1; strcpy(rec[i].name,"-"); } } int hashtable::hashing(int no) { int hv; hv=no%MAX; return hv; } int hashtable::insert(struct ht h) { int i,k; k=hashing(h.id); if(rec[k].id==-1) { rec[k].id=h.id; strcpy(rec[k].name,h.name); count++; } else { for(i=(k+1)%MAX;i<MAX;i=(i+1)%MAX) { if(rec[i].id==-1) { rec[i].id=h.id; strcpy(rec[i].name,h.name); count++; break; } } } return count; } Page 1 of 5File: /home/saiesh/ADS/Assignment No 6/ads6.cpp void hashtable::display() { if(count!=0) { cout<<"\n HASH TABLE"; cout<<"\nIndex\tName\tID\n"; for(int i=0...