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

My question is little bit philosophical. I would like to explain my ideas with a 2...
My question is little bit philosophical. I would like to explain my ideas with a 2 dimensional universe model. If we had lived in 2 dimensional universe like a plane, What could we observe when seeing a 3d object? For example: If a square pyramid that is inside full of material comes to the plane universe in right angle, what could the people who live in 2d universe observe? Firstly, we could see small square and slowly it would enlarge...
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...
Use PHP, javascript and a little bit of Html More focus on php Create a logout...
Use PHP, javascript and a little bit of Html More focus on php Create a logout page (for patients) in hotel management. Please provide the screenshot of the output too (logout page). Hint: the logout page should include like this thanks for visting etcetera. Thanks in advance
Can someone fix my 2b a little bit!!!thx 2) The Value Chain Model Apply the value...
Can someone fix my 2b a little bit!!!thx 2) The Value Chain Model Apply the value chain model to compare one of the following options: a) How HP produces and sells microcomputers (using sellers) Vs Dell manufacturing and selling computers (through its web site.) Outbound logistics: function to require to get products out to customers. In the case of HP, the microcomputers are distributed and sold at technology stores, then the store services are assigned to sell the microcomputers to...
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...
I'm having a bit of an issue with one of my C++ labs. It's not for...
I'm having a bit of an issue with one of my C++ labs. It's not for score but I need to understand it so I can move on. A restaurant servers burgers for $8 and salads for $7. When the customer selects a burger they must choose if they would like cheese. If they do, cheddar costs an additional 25 cents while pepper jack is 50 cents. When the customer selects a salad they must choose if they would like...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT