Question

In: Computer Science

Draw a data model for the following: A travel agency is frequently asked questions about tourist...

Draw a data model for the following:

A travel agency is frequently asked questions about tourist destinations. For example, customers want to know details of the climate for a particular month, the population of the city, and other geographic facts. Sometimes they request the flying time and distance between two cities. The manager has asked you to create a database to maintain these facts.

Solutions

Expert Solution

To create the data model for the given system, let’s follow the below steps:

Step 1: Identify the Tables/Entities in the system:

The system given can have below tables in the data mode:

  • Destination_City: To store the data about the destination city’s address, name etc.
  • City_details: To store the data about weather, geographical details and additional details
  • Climate: To store the data about the monthly climate of given destination city
  • Schedule: To store the data about the scheduled departure to destination cities
  • Distances: To store the data about distances between the cities

Step 2: Identify the attributes the system can have in the data model

The identified tables can have below attributes in it:

  • Destination_City(Dest_ID, Name, Street_Address, City, State, ZipCode, Country)
  • City_details(Dest_ID, Map_Location, Population, Area)
  • Climate(Climate_ID, Dest_ID, Month, Weather, temperature)
  • Schedule(Schedule_ID, Source_City, Destination_City, Departure_DateTime, Arrival_DateTime)
  • Distances(Distance_ID, Source_City, Destination_City, Distance_kilometers)

Step 3: Identify the key and foreign key attributes in the identified tables

**Primary Key is BOLD and underlined whereas Foreign key is having FK next to the attribute name

  • Destination_City(Dest_ID, Name, Street_Address, City, State, ZipCode, Country)
  • City_details(Dest_ID, Weather, Map_Location, Population, Area)
  • Climate(Climate_ID, Dest_ID(FK), Month, Weather, temperature)
  • Schedule(Schedule_ID, Source_City(FK), Destination_City(FK), Departure_DateTime, Arrival_DateTime)
  • Distances(Distance_ID, Source_City(FK), Destination_City(FK), Distance_kilometers)

Step 4: Draw the data model for the identified tables and attributes:

Step 5: Relationships in the data model:

  • One destination has one City_details record (One to one relationship)
  • One city_details record can have many climate records for multiple months (one to many relationship)
  • Destination can have many or 0 schedule (One to many relationship)
  • Destination can have multiple distances with different destinations (many to many relationship)

Step 6: Relationship notation in the data model:

1. One to one is displayed as below:

2. One to many is displayed as below:

3. Many to many is displayed as below:


Related Solutions

d. A travel agency is frequently asked questions about tourist destinations. For example, customers want to...
d. A travel agency is frequently asked questions about tourist destinations. For example, customers want to know details of the climate for a particular month, the population of the city, and other geographic facts. Sometimes they request the flying time and distance between two cities. The manager has asked you to create a database to maintain these facts.
research about the importance of travel agency
research about the importance of travel agency
The following is a Binomial Option Pricing Model question. There will be 7 questions asked about...
The following is a Binomial Option Pricing Model question. There will be 7 questions asked about it. Since the order of questions chosen is random, I suggest you solve the following all at once and choose your answer to each part as it comes up. You will be asked the following questions: 1. What are the values of the calls at maturity, t=2? 2. What are the values of the calls at t =1? 3. What is the initial (t...
The manager of a travel agency asked you to come up with a forecasting technique that...
The manager of a travel agency asked you to come up with a forecasting technique that will best fit to the actual demand for packaged tours. You have observed and recorded the actual demand for the last 10 periods. You also identified two possible techniques for consideration: 2-month moving averages (F1), and exponential smoothing (F2) with a smoothing constant of 0.40. Using Cumulative Forecasting Error (CFE) and Mean Absolute Deviation (MAD) as your performance measures you will determine the technique...
One of the questions most frequently asked by prospective home buyers along the east coast of...
One of the questions most frequently asked by prospective home buyers along the east coast of the United States is: If we purchase this home, how much can we expect to pay to heat it during the winter? The research department at Herrington Real Estate has collected the following information. Temperature = Mean Outside Temperature (F); Attic = Attic insulation (in inches). Home Mean Outside Temperature (degrees) Attic Insulation (inches) Monthly Heating Costs ($) 1 18 3 188 2 34...
One of the questions most frequently asked by prospective home buyers along the east coast of...
One of the questions most frequently asked by prospective home buyers along the east coast of the United States is: If we purchase this home, how much can we expect to pay to heat it during the winter? The research department at Herrington Real Estate has collected the following information. Temperature = Mean Outside Temperature (F); Attic = Attic insulation (in inches). Home Mean Outside Temperature (degrees) Attic Insulation (inches) Monthly Heating Costs ($) 1 18 3 188 2 34...
Question 1 The travel agency Paradise Retreats has developed a model to predict the price per...
Question 1 The travel agency Paradise Retreats has developed a model to predict the price per night of holiday apartment rentals in the coast of Croatia: ?=550+11?1−5?2 ?: price of the apartment per night (in kunas) ?1: area of the apartment (in square meters) ?2: distance to the beach (in km) According to Paradise Retreats’ model: How much more expensive (in kunas) will be the rental of a 60 square-meter apartment on the beachfront compared with a 60 square-meter apartment...
write a report about travel agency in c++ not a program writing just report writing
write a report about travel agency in c++ not a program writing just report writing
On April 1, Jiro Nozomi created a new travel agency, Adventure Travel. The following transactions occurred...
On April 1, Jiro Nozomi created a new travel agency, Adventure Travel. The following transactions occurred during the company’s first month. April 1 Nozomi invested $41,000 cash and computer equipment worth $35,000 in the company in exchange for common stock. 2 The company rented furnished office space by paying $2,700 cash for the first month’s (April) rent. 3 The company purchased $1,500 of office supplies for cash. 10 The company paid $2,300 cash for the premium on a 12-month insurance...
On April 1, 2017, Jiro Nozomi created a new travel agency, Adventure Travel. The following transactions...
On April 1, 2017, Jiro Nozomi created a new travel agency, Adventure Travel. The following transactions occurred during the company’s first month. April 1 Nozomi invested $40,000 cash and computer equipment worth $30,000 in the company. 2 The company rented furnished office space by paying $2,700 cash for the first month’s (April) rent. 3 The company purchased $1,700 of office supplies for cash. 10 The company paid $2,300 cash for the premium on a 12-month insurance policy. Coverage begins on...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT