LeviCoding
I don't know how to structure my program...
It should be possible to add or remove a fleet.The same fleet of course only appears once. A fleet must also be quickly searchable by name. A shipping company is active in several ports, so it must be possible to add ports to a shipping company (and also to remove ports). It must also be possible to give an overview of the ports belonging to a shipping company in alphabetical order.Ports are simply represented by a name only (e.g. Antwerp, Rotterdam, ...) It must also be possible to place a ship in another fleet (e.g. place ship "De Plank "in fleet "Stille oceaan"). Furthermore it should be possible to give an overview of :-The total cargo value of the ships belonging to a shipping company.-The total number of passengers.-The tonnage per fleet to be listed (from large to small).-The total amount of volume the tankers can carry.-The available tugs.A shipping company should also be able to display info about a particular ship (based on the name of the ship).
18 replies
I don't know how to structure my program...
We enter the world of shipping.The management of ships is done by shipping companies, where each shipping company has several fleets, and each fleet consists of a number of ships. There are different types of ships, we distinguish:-Containership: length, width, tonnage, name, number of containers, cargo value-RoRo ship: length, width, tonnage, name, number of autos, number of trucks, cargo value-Cruise ship: length, width, tonnage, name, number of passengers, route-Ferry: length, width, tonnage, name, number of passengers, route-Olite tanker: length, width, tonnage, name, cargo value, volume (liters), cargo (oil, benzene,diesel or naphtha)-Gast tanker: length, width, tonnage, name, cargo value, volume (liters), cargo (LPG, LNG or ammonia)-Tugboat: length, width, tonnage, nameExtra info:-Cargo value: is the value of the cargo expressed in euros. -Tonnage: is the volume of the ship-Traject: for a ferry this is a fixed route between 2 ports, for a cruise ship this is a variable list of ports called at. In the route of a cruise ship, the sequence of ports is important. Ports can easily be represented by their names.A fleet has a name (e.g. North Sea fleet) and has a number of ships. It should be possible both to add ships to a fleet and to remove ships. One ship is allowed of course but
18 replies