Parallel and series connection of batteries

Just as there is no shipping without wind, electronic devices and electrical circuits will not work without the proper power source. But how do you combine batteries to achieve the appropriate parameters for your project?