A practical computer method for solving ship-wave problems