Parallel and series connection of batteries

Just as there is no sailing without wind, electronic devices and electrical circuits will not work without a proper power source. But how do you combine cells to achieve the right performance for your project?