You should be able to figure out that simplest case. In that case the problem becomes a 'math' problem. That is a very good homework for you.
Yes. The actual simulation of the motion of a ship in waves is much complicated. But People use CFD software (Computational Fluild Dynamics) for computer simulations. Of course you can also use experimental techniques to actually 'measure' it.