1. A hotel room reservation in a famous hotel wants to store all the guest information...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
1. A hotel room reservation in a famous hotel wants to store all the guest information in a database. The information contains guest name, national ID, check in date, room number etc., For the easy access of information, the developers wants to use hashing technique. Help the developers in writing a hashing program using any hash method in C++. The program should perform the following tasks. a. Program should accept the guest information until the user says 'n'. b. Store all the information in a hash table by using national ID as key field. C. i. Use any hash function to convert key into hash key. Write the code of separate chaining to place the records in hash table. d. Display all records from table whenever required. e. Delete a record whenever required. f. Write a menu driven code for the above steps. 1. A hotel room reservation in a famous hotel wants to store all the guest information in a database. The information contains guest name, national ID, check in date, room number etc., For the easy access of information, the developers wants to use hashing technique. Help the developers in writing a hashing program using any hash method in C++. The program should perform the following tasks. a. Program should accept the guest information until the user says 'n'. b. Store all the information in a hash table by using national ID as key field. C. i. Use any hash function to convert key into hash key. Write the code of separate chaining to place the records in hash table. d. Display all records from table whenever required. e. Delete a record whenever required. f. Write a menu driven code for the above steps.
Expert Answer:
Related Book For
Concepts of Database Management
ISBN: 978-1285427102
8th edition
Authors: Philip J. Pratt, Mary Z. Last
Posted Date:
Students also viewed these programming questions
-
CANMNMM January of this year. (a) Each item will be held in a record. Describe all the data structures that must refer to these records to implement the required functionality. Describe all the...
-
Let A, B be sets. Define: (a) the Cartesian product (A B) (b) the set of relations R between A and B (c) the identity relation A on the set A [3 marks] Suppose S, T are relations between A and B, and...
-
In this exercise, we prove that for all x, y 0: a + b 1 1.40 y B where a 1 and 1 are numbers such that a +B- = 1. To do this, we prove that the function f(x,y) = ax + _xy xy satisfies f(x, y) 0 for...
-
Inglewood Landscaping Corp. began constructing a new plant on December 1, 2017. On this date, the company purchased a parcel of land for $184,000 cash. In addition, it paid $2,000 in surveying costs...
-
The following data were drawn from the required supplementary information section of the Modian School District's annual report (all dollar amounts in thousands). 1. What is the amount that the...
-
Accurate recording within general ledger control accounts does not necessarily mean that billing, collection, and adjustment transactions will be posted accurately to individual customer accounts....
-
Abardeen Corporation borrowed $90,000 from the bank on October 1, 2016. The note had an 8percent annual rate of interest and matured on March 31, 2017. Interest and principal were paid in cash on the...
-
Identify a successful organization. ( you are free to choose a not-for-profit or public-sector agency if you wish.) Reflect on how this organization has succeeded thanks to effective use of...
-
Mendina, Incorporated produces an advanced type of coffee maker. Information about the coffee maker is below: Total Variable Cost at 200 units Total Cost per Unit Sales Price Target Profit Volume...
-
1. In what ways are the processes of managing an increase in internationalization versus managing in a steady state of international involvement likely to be the same and likely to be diff event 2....
-
Discuss the role of body language in the client-adviser relationship. Provide examples of various aspects of body language to demonstrate your point.
-
Assume that the continuous annual risk-free rate is 6% and the current spot price of the S&P 500 is $1,600. a.) If the continuous dividend yield is 1.5%, what is the prepaid forward price for a...
-
Victory Company's $1,000 par, 8.75% coupon, 30 year bonds were issued 20 years ago.The bonds pay semi-annual coupons. If investors require a 13% annual rate of return on this bond, what is the bond's...
-
Identify and discuss costs associated with developing and launching the new products and/or services. Provide dollar figure examples/estimates of each of the costs you discuss. We do not expect them...
-
Jensen's opening statement: "In most industrialized nations today, economists, management scholars, policy makers, corporate executives, and special interest groups are engaged in a high-stakes...
-
Economics Case Study Section: Translating Strategy into HR Policies and Practices Improving Performance at the Hotel Paris The New Safety and Health Program The Hotel Pariss competitive strategy is...
-
A summary of changes in Pen Corporation's Investment in Sam account from January 1, 2011, to December 31, 2013, follows (in thousands): ADDITIONAL INFORMATION 1. Pen acquired its 80 percent interest...
-
The following exercises are based on the Colonial Adventure Tours database shown in Figures 1-15 through 1-19 in Chapter 1. No computer work is required. 1. Using the types of entities found in the...
-
What is meant by concurrent update?
-
What is privacy? How is privacy related to security?
-
A construction engineer has to inspect 5 construction sites in a 2-day inspection schedule. He may or may not be able to visit these sites in two days. He will not visit any site more than once. (a)...
-
An explosion in an LNG storage tank in the process of being repaired could have occurred as the result of static electricity, malfunctioning electrical equipment, an open flame in contact with the...
-
What conditions for the binomial distribution, if any, fail to hold in the following situations? (a) For each of a company's eight production facilities, record whether or not there was an accident...
Study smarter with the SolutionInn App