Answer to Question #46236 in Other Programming & Computer Science for Andre
A merchant shipping company wishes to use a computer database to help with its operations. There are three distinct areas in which such assistance is desired.
First, it is required that details of the company fleet be recorded. The fleet comprises a number of types of ship: cargo vessels have a deadweight (cargo capacity), class of cargo carried (e.g. dry, container, grain) and number of onboard loading derricks; oil tankers also have a deadweight, and a class of petroleum for which they are equipped; and passenger vessels have a maximum passenger capacity for each of “first” and “tourist” classes, and a number of staterooms. All ships have a crew, which comprises, a master, a number of officers and seamen. They have length, beam, draught and displacement, and burn particular types of fuel. They also have a maximum speed and endurance. Each ship has a home port, which may or may not be the same as its port of registration.
Secondly, the officers and crew have to be paid! Their salary depends on their qualifications and current appointment – to which ship and in what capacity. There is also a “bounty” payment made in respect of each trip made, which depends on the length of the trip and on the individual’s length of service with the company. In addition, ship’s officers who are sailing in less than their customary capacity (e.g. a master sailing as a first mate) receive an extra payment.
Finally, the company is required by its insurers to maintain a record of the position of each vessel; its port and date of departure, destination and estimated date of arrival; number of officers, total number on board, and total value of cargo carried, if any. Ships currently in dock for repairs must also be included in this catalogue.
(a) Construct an ER diagram from the description above.