Question

In: Computer Science

Struggling a little bit with one of my homework questions. we are to create an ER...

Struggling a little bit with one of my homework questions. we are to create an ER digram from the following business rules using UML notation, we are encouraged to uses weak entities, sub classes and ternary relationships. Thank you in advance  

You have just been employed as a database designer in a well-established software development firm. Your first job is to design and implement a database system for an airline booking company. The following information has been gathered after analysing the current practices of the company.

• The system records information about flight bookings by customers.

• Customers are identified by an email address and have a phone number and a name.

• Customers make bookings for specific instances of a flight. The booking has a reference number for easy lookup and records the credit card number and the seat number on the flight. Each customer makes their own booking.

• Each flight has a unique flight code, which identifies the scheduled departure time, departure gate and departure airport of the flight, as well as the scheduled arrival time, arrival gate and arrival airport of the flight.

• Each airport has a unique airport code, and has a city.

• Flights repeat each day, e.g. a flight with the code QF430 is scheduled to depart Melbourne Airport at 9:30am each day from gate 3 and arrive at 10:55am at Sydney Airport at gate 2. Your design should not repeat common information for each daily flight.

• The status of a specific flight (e.g. boarding) will depend on the scheduled date of the specific flight instance.

• The pilot will also vary from flight to flight, but each specific flight has exactly 2 pilots. Pilots have an employee id and a name.

• Similarly, the aircraft used can vary from flight to flight, but each specific flight is on board a specific aircraft.

• Aircrafts have a tail number to identify them and have a specific model.

Solutions

Expert Solution

Please find below the steps to create Entity Relationship Diagram for the given system requirement in UML notation:

Step 1: List entities and weak entities:

1. Customer: A regular entity to store the details about the customer

2. Flight: This is the flight details where the static departure and arrival airports along with the specific schedule that is to be same for all days on same aircraft.

3. FlightInstance: It is a weak entity where Flight can have many FlightInstances which stores the daily status of the flight schedule with date and its status.

4. Airport: This will store the details about airport

5. Pilot: The details about the pilot

6. Aircraft: The aircraft used in the flights.

7. Bookings: It will store the booking of the customer tickets.

Step 2: List relationships among entities:

1. Flight has many FlightInstances but a FlightInstance belongs to one FlightCode.

2. Flight has one Airport as departing airport and one airport as arrival airport.

3. Flight has 2 Pilots and a Pilot can fly many Flights. It is M:N relationship which will be stored separately.

4. Flight uses same Aircarft daily but an aircraft can be used in many flights. It is M:1 relationship.

Step 3: Add attributes to the entities:

1. Customer(customer_id, name, email, phone_number)

2. Flight(flightCode, dep_gate , dep_ariportcode(fk), arrival_gate , arrival_ariportcode(fk), aircraft_tail_no(fk))

3. Airport(ariportcode,       city)

4. FlightInstance(flightcode, date, scheduled_dep_time, sche_arrival_time, status)

5. Pilot(employeeID, name)

6. Aircraft(aircraftTailNo, model)

Relational entities:

7. FlightPilot(flightcode, date, pilot_employee_id)

8. Booking(referenceno, customerid, flightcode, date, creditcard_no, seatno)

Step 4: Final ERD:

**PK is Primary key and FK is foreign key

Step 5: Entity Type Notations:

The entities where PK is FK from other table, are weak entities as below:

The entities having independent PK are normal entities.


Related Solutions

Ok, so I'm struggling a bit with my labs being online due to covid. I was...
Ok, so I'm struggling a bit with my labs being online due to covid. I was provided this information and an empty table. "Sorghum is a genus of grass containing 25 species. Several species are grown in cultivation as livestock feed and one, Sorghum bicolor, is grown widely as a grain for human consumption and also for production of molasses and ethanol. It is one of the top five grain crops grown and consumed worldwide (along with wheat, corn, rice,...
Hello, I am struggling to understand some of my accounting homework. Question 01 ) Tulsa Company...
Hello, I am struggling to understand some of my accounting homework. Question 01 ) Tulsa Company is considering investing in new bottling equipment and has two options: Option A has a lower initial cost but would require a significant expenditure to rebuild the machine after four years; Option B has higher maintenance costs, but also has a higher salvage value at the end of its useful life. Tulsa’s cost of capital is 11 percent. The following estimates of the cash...
Hey everyone I'm working through my homework which involves creating a ER diagram based of certain...
Hey everyone I'm working through my homework which involves creating a ER diagram based of certain business rules and I am stuck on this part: Updated info • Customers have a name, phone number, a credit card no, and a unique customer number. • Customers can attend many performances, and each performance can have many customers attending. • Each performance of a show is on at a specific date and time, at a venue. • Each performance has many actors...
Please create an Excel file with the calculated answers to the questions to the Excel homework...
Please create an Excel file with the calculated answers to the questions to the Excel homework for this week. The questions are listed in the attached PDF file.   Please also go over the Excel file attached to this assignment in order to familiarize yourself with the different ways Excel can be used to solve Time Value of Money problems when multiple cash flows are involved. There are three worksheets in the Excel file. This Excel file with examples is just...
i have attached my code here and we are supposed to create two classes. one is...
i have attached my code here and we are supposed to create two classes. one is date the other switches accounts for bank and then displays the bank account,type,name,date(pulled from first class and then prints out. i am having issues getting my code to pull from the first class and dont know how to make it read the data from date class if someone can look at my code and tell me how to fix this i would greatly appreciate...
""""" I need new post to accepted my homework """"" Assignment Questions: There are four macro...
""""" I need new post to accepted my homework """"" Assignment Questions: There are four macro strategies to create and deliver value to customers and that can help a firm to develop a sustainable competitive advantage. Think of companies from the local market who you are very loyal to in many categories like (food, electronics, personal care etc.). Is it the product, location, operational, or customer excellence that you are loyal to that firm? Critically examine. (2.5 Marks) You have...
Hi, so for my homework assignment, we are meant to change this function so that instead...
Hi, so for my homework assignment, we are meant to change this function so that instead of making a list from the array going up in an ascending order, making it be listed in descending order, meaning going from largest number to smallest number, the code I have now works for the ascending order, but how would I change this for it to go descending? Any help would be amazing, and please with a tutorial, thanks so much. def heapify(arr,...
This is one of the questions and answers to one of my scholarship questions, I want...
This is one of the questions and answers to one of my scholarship questions, I want help to review/edit/add to make it sound better please! 1. What is your most meaningful achievement, and how does it relate to your field of study and your future goals? The most meaningful achievement I have faced was beating cancer in March 2016 during my senior year of high school. This experience changed my view on many aspects of my life. Being in the...
Heat transfer ( related nuclear engineering a little bit ) I got some Short-answer questions (2~3...
Heat transfer ( related nuclear engineering a little bit ) I got some Short-answer questions (2~3 sentences) I want to know that 1) Definition of convective heat transfer coefficient 2) Frequency range of radiation heat transfer 3) Constant temperature condition VS constant heat flux 4) Coupling of equations in natural convection 5) Core acceleration
Hi, I am doing up my homework on mathematics and here are some questions. I want...
Hi, I am doing up my homework on mathematics and here are some questions. I want to cross-reference my answers thank you. Decide if the statements below are True or False. Please include some rough workings for me to understand: (1) Mr. Tan borrowed $500,000 from Bank XYZ at 5% annual interest to be repaid monthly over 20 years. The amount that he pays back to XYZ each month is between $3000 to $3500. (2) Continuing from (1): after 15...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT