Term project 4: Programming for calculation of the ship position in static equilibrium