// Program A: hashbuild.cpp #include #include #include using namespace std; int main() { string datafileName, indexName; // datafile name and hashed index name int numAddress; // number of hash addresses (positions in the hash file) cout<<"Enter datafile name> "; cin >> datafileName; cout<<"Enter index file name> "; cin >> indexName; cout<<"Enter number of hash adresses> "; cin >> numAddress; // **** code to build the hashed index file must be inserted here *** // output data in this order: cout<<"\n Results for: datafile <"<, indexfile <"<, " << numAddress << " addresses\n\n"; cout<<" average search length: "<<"\n"; cout<<" number of records at their home addresses: " << "\n"; cout<<" number of records away from their home addresses: " << "\n"; cout<<" packing density: " << "\n"; cout<<" size of the index file: "<< " bytes\n\n"; return 0; }